star-3dut

Generate meshes of simple geometric shapes
git clone git://git.meso-star.fr/star-3dut.git
Log | Files | Refs | README | LICENSE

commit 2217591af474fa4845bea68f95bc2e9b115f1eba
parent cabae4964c8deaa089f9150b41fc757cd80b9da3
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 30 Nov 2016 12:02:14 +0100

Fix an issue in the s3dut_create_cylinder function

Take into account the radius parameter

Diffstat:
Msrc/s3dut_cylinder.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/s3dut_cylinder.c b/src/s3dut_cylinder.c @@ -43,8 +43,8 @@ setup_cylinder_coords double z = -height * 0.5; FOR_EACH(istack, 0, nstacks+1) { - coords[i++] = x; - coords[i++] = y; + coords[i++] = x*radius; + coords[i++] = y*radius; coords[i++] = z; z += step_z; }