-
I have four arrays: Point3[] pointsOne, How can I perform the Boolean operation of subtracting one Mesh from another? |
Beta Was this translation helpful? Give feedback.
Answered by
MaelRL
Jun 26, 2024
Replies: 1 comment 3 replies
-
Your question is a bit vague. That depends on the way you mesh is structured. Is it a mesh of triangles (all faces have exactly three vertices), or more general? In CGAL, that sort of data is a called a polygon soup. We have functions to process that, in the chapter Polygon Mesh Processing of the documentation. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following functions can be used to go from a soup (ranges of points and indices) to a mesh, and back:
The function PMP::orient_polygon_soup could help with your badly oriented facets.
See the example: https://doc.cgal.org/latest/Polygon_mesh_processing/Polygon_mesh_processing_2repair_polygon_soup_example_8cpp-example.html for a combined use.