Closed taus closed 9 years ago
The meshes are self-intersecting and thus don't have an inside/outside which explains why the nef code was not able to correctly mark the volume.
See this function
Thank you. I got the impression from the documentation that the requirement for succesfully converting a polyhedron to nef was the "is_closed" predicate. I got it working now though. As a small heads up, in the header file polygon_mesh_processing.h, the inclusion of the file polygon_soup_to_polygon_mesh is missing the Polygon_mesh_processing/ directory.
The first requirement is that the input is a valid polyhedral surface :) Thanks for the bug-report. I just fixed it.
When trying to perform 3D boolean operations on Nef polyhedra i get the assertion fail
I have insured that the meshes are closed, valid and triangular. I have created a minimal example here: https://github.com/taus/CGALMinimal to demonstrate the error. The example includes a simple mesh creator and uses this to create two overlapping boxes. It then converts them to Nef polyhedra and tries to do a union. I have tried this in both CGAL 4.6.7 and the 4.7 beta.