commit 639ef01866e4394cdb3a1c27febb7606c3d89625
parent d74ae95ab85dbc4127ec8bb07d66452079452642
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 13 Sep 2017 22:13:31 +0200
Handle the stack parameter for the cylinder
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/solstice_object.c b/src/solstice_object.c
@@ -217,7 +217,8 @@ create_cylinder
cylinder = solparser_get_shape_cylinder(solstice->parser, cylinder_id);
ASSERT(cylinder->nslices > 0 && cylinder->nslices < UINT_MAX);
res = s3dut_create_cylinder(solstice->allocator, cylinder->radius,
- cylinder->height, (unsigned)cylinder->nslices, 1, &mesh);
+ cylinder->height, (unsigned)cylinder->nslices, (unsigned)cylinder->nstacks,
+ &mesh);
if(res != RES_OK) {
fprintf(stderr, "Could not create the cylinder 3D data.\n");
goto error;