Skip to content

Understanding Signed Distance Calculation Between Two Meshes #4138

Answered by Grantim
Gihong-Yim asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!

Inside/Outside classification in findSignedDistance functions is done by this function:

/// computes whether a point (pt) is located outside the object surrounded by this mesh
/// using pseudonormal at the closest point to in on mesh (proj);
/// this method works much faster than \ref isOutside but can return wrong sign if the closest point is located on self-intersecting part of the mesh
[[nodiscard]] MRMESH_API bool isOutsideByProjNorm( const Vector3f & pt, const MeshProjectionResult & proj, const FaceBitSet * region = nullptr ) const;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Gihong-Yim
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