Skip to content

Mesh Clean Up #4921

Answered by Grantim
nsmela asked this question in Q&A
Aug 4, 2025 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

I understand. There is no one general function to detect all possible issues, different issues require different checks. For example you can use findSelfCollidingTriangles to detect self-intersections on mesh:

/// finds all pairs of colliding triangles from one mesh or a region
[[nodiscard]] MRMESH_API Expected<std::vector<FaceFace>> findSelfCollidingTriangles( const MeshPart& mp, ProgressCallback cb = {},
const Face2RegionMap * regionMap = nullptr, ///< if regionMap is provided then only self-intersections within a region are returned
bool touchIsIntersection = false ); ///< if true then treat touc…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@nsmela
Comment options

@Grantim
Comment options

Answer selected by nsmela
@nsmela
Comment options

@nsmela
Comment options

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