star-cad

Geometric operators for computer-aided design
git clone git://git.meso-star.fr/star-cad.git
Log | Files | Refs | README | LICENSE

commit 2e37f333732f18c77521e5bdc04ead18afe8ac4a
parent f760b0774496eb2ddbdefea53fe3a4ef4ec3b6ec
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Mon, 23 Oct 2023 16:09:18 +0200

Use senc3d dependency in single thread mode if option OCCParallel is unset

Diffstat:
Msrc/scad.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/scad.c b/src/scad.c @@ -533,7 +533,8 @@ scad_stl_sort_orientation else convention = SENC3D_CONVENTION_NORMAL_BACK | SENC3D_CONVENTION_NORMAL_INSIDE; - ERR(senc3d_device_create(logger, allocator, SENC3D_NTHREADS_DEFAULT, + ERR(senc3d_device_create(logger, allocator, + dev->options.Geometry.OCCParallel ? SENC3D_NTHREADS_DEFAULT : 1, dev->verbose, &senc3d)); ERR(senc3d_scene_create(senc3d, convention, tcount, sg3d_sencXd_geometry_get_indices, NULL,