Skip to content

Commit

Permalink
periodic_delaunay: removed unused lock variable
Browse files Browse the repository at this point in the history
mesh_tetrahedralize: option to merge or not to merge coplanar facets
  • Loading branch information
BrunoLevy committed Oct 1, 2024
1 parent fed35c1 commit f8993ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/lib/geogram/delaunay/periodic_delaunay_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4110,7 +4110,6 @@ namespace GEO {


PeriodicDelaunay3dThread* thread0 = thread(0);
Process::spinlock lock = GEOGRAM_SPINLOCK_INIT;

// Lag_cell_status:
//
Expand Down
2 changes: 1 addition & 1 deletion src/lib/geogram/mesh/mesh_tetrahedralize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ namespace GEO {
intersection.set_verbose(verbose);
intersection.intersect();
intersection.remove_internal_shells();
if(iter == 0) {
if(iter == 0 && parameters.preprocess_merge_coplanar_facets) {
intersection.simplify_coplanar_facets();
}
mesh_repair(M, MESH_REPAIR_DEFAULT, epsilon);
Expand Down
4 changes: 4 additions & 0 deletions src/lib/geogram/mesh/mesh_tetrahedralize.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ namespace GEO {
* removes intersections and extracts external boundary.
*/
bool preprocess = false;
/**
* \brief merge coplanar facets
*/
bool preprocess_merge_coplanar_facets = false;
/**
* \brief Maximum distance for merging vertices if preprocess is set
* \details In percent of bounding box diagonal
Expand Down

0 comments on commit f8993ce

Please sign in to comment.