star-cad

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

commit 8a50487129140151cdb7ed45d452bd3b56d4baae
parent 59cd12f432adb6ebe754f7e4d81e1e7301679b09
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Wed, 24 May 2023 09:03:21 +0200

Remove scene partition from API

The reason is that refcounting and geometry lifetime management are broken when this operator is used, without possible fix

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

diff --git a/src/scad.c b/src/scad.c @@ -573,24 +573,3 @@ exit: error: goto exit; } - -res_T -scad_scene_partition - (void) -{ - int ierr = 0; - res_T res = RES_OK; - - ERR(check_device(FUNC_NAME)); - - gmshModelOccRemoveAllDuplicates(&ierr); - ERR(gmsh_err_to_res_T(ierr)); - - gmshModelOccSynchronize(&ierr); - ERR(gmsh_err_to_res_T(ierr)); - -exit: - return res; -error: - goto exit; -} diff --git a/src/scad.h b/src/scad.h @@ -322,12 +322,6 @@ scad_geometries_partition const int allow_overlapping, struct scad_geometry** out_geometries); /* Can be NULL if overlapping disallowed */ -/* Partition the whole scene. - * Overlapping is not detected and newly created objects are not returned. */ -SCAD_API res_T -scad_scene_partition - (void); - SCAD_API res_T scad_fragment_geometries (const char* name, /* Can be NULL */