Skip to content

How to Implement Distance Compare option in c++ #4087

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

You must be logged in to vote

Hello!

You can use this function:

/// Computes signed distances from valid vertices of test mesh to the closest point on the reference mesh:
/// positive value - outside reference mesh, negative - inside reference mesh;
/// this method can return wrong sign if the closest point is located on self-intersecting part of the mesh
[[nodiscard]] MRMESH_API VertScalars findSignedDistances(
const Mesh& refMesh, ///< the distances to this mesh will be returned
const Mesh& mesh, ///< the distances from valid vertices of this mesh will be returned
const MeshProjectionParameters & param…

Replies: 1 comment

Comment options

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