Skip to content

how I can automatically detect thin wall #4447

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

You must be logged in to vote

Hello!

In MeshHealer we use this function to calculate thickness of each vertex:

/// returns the distance from each vertex along minus normal to the nearest mesh intersection (or FLT_MAX if no intersection found)
[[nodiscard]] MRMESH_API std::optional<VertScalars> computeRayThicknessAtVertices( const Mesh& mesh, const ProgressCallback & progress = {} );
[[deprecated]] MRMESH_API VertScalars computeThicknessAtVertices( const Mesh& mesh );

As for critical value - we use 0.95*tolerance by default, but it should really depend on your needs, we just peaked some value based on user input tolerance

auto

Replies: 1 comment 1 reply

Comment options

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

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