Skip to content

Current Hole Metrics in Fill Hole tool #3955

Answered by Grantim
ParvGuptaSpCT asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!

You can use these functions to calculate hole perimeter and area:

/// computes the perimeter of the hole specified by one of its edges with no valid left face (left is hole)
[[nodiscard]] MRMESH_API double holePerimiter( EdgeId e ) const;
/// computes directed area of the hole specified by one of its edges with no valid left face (left is hole);
/// if the hole is planar then returned vector is orthogonal to the plane pointing outside and its magnitude is equal to hole area
[[nodiscard]] MRMESH_API Vector3d holeDirArea( EdgeId e ) const;

Replies: 1 comment 1 reply

Comment options

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

Answer selected by ParvGuptaSpCT
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