Skip to content
Discussion options

You must be logged in to vote

Every tunnel on the mesh has two associated not-trivial (not-collapsible) co-loops. On your picture one is red, and the other one is green.

MeshLib has a function to find one such loop given its associated loop:

/// given not-separating loop on input, finds the loop (also not-separation) that
/// 1) goes from left side of input loop
/// 2) returns to the input loop from its right side
/// 3) goes along the input loop to become closed
/// such that the resulting loop has minimal sum of given metric for its edges;
/// edges 1) and 2) can be only inner or boundary to the given region (they must have region from left or from right)
MRMESH_API Expected<EdgeLoop> findSmallestMetricCoLoop( const

Replies: 3 comments 2 replies

Comment options

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

Comment options

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

Answer selected by leye123
Comment options

You must be logged in to vote
0 replies
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