Skip to content

Commit

Permalink
mesh_tetrahedralize: automatically triangulate if surface was not
Browse files Browse the repository at this point in the history
triangulated.
  • Loading branch information
BrunoLevy committed Oct 30, 2023
1 parent 2edf3e6 commit 97d2ef3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions src/lib/geogram/basic/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@

#endif

// Stack size depending on OS:
// Linux: 10 Mb
// Windows: 1 Mb
// Mac OSX: 523 Kb
// GEO_HAS_BIG_STACK is defined under Linux
// and lets some of the functions that
// manipulate exact precision numbers
// allocate temporaries on the stack.

#ifdef GEO_OS_LINUX
#define GEO_HAS_BIG_STACK
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/lib/geogram/mesh/mesh_surface_intersection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ namespace GEO {
for(index_t i=b; i<e; ++i) {
const IsectInfo& II = intersections[i];

// Each IsectIfo is either an individual vertex
// Each IsectInfo is either an individual vertex
// or a segment with two vertices.
// Each vertex is represented combinatorially.
// The MeshInTriangle knows how to compute the
Expand Down
6 changes: 3 additions & 3 deletions src/lib/geogram/mesh/mesh_tetrahedralize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ namespace GEO {
}

if(!M.facets.are_simplices()) {
Logger::err("TetMeshing")
<< "Mesh is not triangulated"
Logger::warn("TetMeshing")
<< "Mesh is not triangulated (triangulating it)"
<< std::endl;
return false;
tessellate_facets(M,3);
}

// in percent of bbox diagonal
Expand Down

0 comments on commit 97d2ef3

Please sign in to comment.