star-cad

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

commit 146d4b8c052d7eac5cee896abd715be391cde45a
parent e01516581c09017e47c570d2202af1a36daae6fe
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Wed, 11 Jan 2023 10:36:22 +0100

Add an option to select single-threaded VS multi-threaded execution of boolean operators

Diffstat:
Msrc/scad.h | 4++++
Msrc/scad_device.c | 2++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/scad.h b/src/scad.h @@ -94,6 +94,9 @@ struct scad_options { int ExpertMode; /* Avoid user interaction on some option combinations */ } General; struct { + int OCCParallel; + } Geometry; + struct { int Step; /* Run UI when entering any scad API function; requires a FLTK-enabled gmsh build */ int SynchronizeOnRunUI; int LogOpenCascadeTagsRefCounting; @@ -105,6 +108,7 @@ struct scad_options { { { Scad_frontal_Delaunay, Scad_surfaces_and_volumes, 1, 36, 1, 1e+22, 0, \ 1, Scad_one_solid_per_physical_surface }, \ { Scad_verbosity_errors, 1 }, \ + { 1 }, \ { 0, 0, 0, 0 } \ } diff --git a/src/scad_device.c b/src/scad_device.c @@ -400,6 +400,8 @@ scad_set_options SET_GMSH_OPTION_INT(General.Verbosity); SET_GMSH_OPTION_INT(General.ExpertMode); + SET_GMSH_OPTION_INT(Geometry.OCCParallel); + if(options) { /* Check non-gmsh option validity if user-provided */ (void)actual_options->Misc.Step; /* int boolean: always OK */