star-3dut

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

commit 2e35463ed59d3d4c7babc0764786c602d66f3ed5
parent a521ecc3164478d79baeb74e33013929ca7bfb41
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 12 Oct 2017 09:30:30 +0200

Small update of the s3dut_create_<thin|thick>_cylinder API

Diffstat:
Msrc/s3dut.h | 4++--
Msrc/s3dut_cylinder.c | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/s3dut.h b/src/s3dut.h @@ -106,7 +106,7 @@ s3dut_create_thin_cylinder const double height, /* In ]0, INF) */ const unsigned nslices, /* # subdivisions around Z axis in [3, INF) */ const unsigned nstacks, /* # subdivision along Z axis in [1, INF) */ - const unsigned close_ends, /* Close ends of the cylinder? */ + const int cap_mask, /* Combination of s3dut_cap_flag */ struct s3dut_mesh** cylinder); /* Create a triangulated thick cylinder centered in 0 discretized in `nslices' @@ -125,7 +125,7 @@ s3dut_create_thick_cylinder const double thickness, /* In ]0, INF) */ const unsigned nslices, /* # subdivisions around Z axis in [3, INF) */ const unsigned nstacks, /* # subdivision along Z axis in [1, INF) */ - const unsigned close_ends, /* Close ends of the cylinder? */ + const int cap_mask, /* Combination of s3dut_cap_flag */ struct s3dut_mesh** cylinder); /* Create a triangulated cuboid centered in 0. Face vertices are CCW ordered diff --git a/src/s3dut_cylinder.c b/src/s3dut_cylinder.c @@ -178,7 +178,7 @@ s3dut_create_thin_cylinder const double height, const unsigned nslices, const unsigned nstacks, - const unsigned close_ends, + const int close_ends, struct s3dut_mesh** mesh) { struct s3dut_mesh* cylinder = NULL; @@ -227,7 +227,7 @@ s3dut_create_thick_cylinder const double thickness, const unsigned nslices, const unsigned nstacks, - const unsigned close_ends, + const int close_ends, struct s3dut_mesh** mesh) { struct s3dut_mesh* cylinder = NULL;