Hollowing: randomize hole mesh translations before unification.

To prevent self intersections in the output mesh.
This commit is contained in:
tamasmeszaros 2020-02-07 16:33:04 +01:00
parent f512892f6b
commit eb4b24e136
4 changed files with 25 additions and 17 deletions

View file

@ -25,7 +25,6 @@ void self_union(TriangleMesh& mesh);
namespace cgal {
struct CGALMesh;
struct CGALMeshDeleter { void operator()(CGALMesh *ptr); };
std::unique_ptr<CGALMesh, CGALMeshDeleter> triangle_mesh_to_cgal(const TriangleMesh &M);