Skip to content

Does Geogram have a way to find and remove equal and opposite facets? #228

Answered by BrunoLevy
tksuoran asked this question in Q&A
Discussion options

You must be logged in to vote

MeshSurfaceIntersection (used to implement CSG and boolean operations) does that (in addition, if there are intersections, they will be resolved), it can be used as follows:

        #include <geogram/mesh/mesh_surface_intersection.h>        
        MeshSurfaceIntersection intersection(M);
        intersection.set_delaunay(true);
        intersection.set_detect_intersecting_neighbors(true);
        intersection.set_radial_sort(true);
        intersection.intersect();
        intersection.remove_internal_shells();
        intersection.simplify_coplanar_facets(coplanar_angle_tolerance); // optional

See also:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tksuoran
Comment options

Answer selected by tksuoran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants