Skip to content

Example for the Fill Hole Function that Can Only Patch Small Holes #2868

Answered by Fedr
pty0220 asked this question in Q&A
Discussion options

You must be logged in to vote
    /// returns one edge with no valid left face for every boundary in the mesh
    [[nodiscard]] MRMESH_API std::vector<EdgeId> MeshTopology::findHoleRepresentiveEdges() const;

So for every edge e0 from the returned vector please call the function

/// returns closed loop of region boundary starting from given region boundary edge (region faces on the right, and not-region faces or holes on the left);
/// if more than two boundary edges connect in one vertex, then the function makes the most abrupt turn to left
[[nodiscard]] MRMESH_API EdgeLoop trackRightBoundaryLoop( const MeshTopology & topology, EdgeId e0, const FaceBitSet * region = nullptr );

It will give you complete edge loop of on…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@czc98
Comment options

@Fedr
Comment options

Fedr Aug 9, 2024
Maintainer

Answer selected by Fedr
@czc98
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
4 participants