MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / signedDistance

Method signedDistance

source/MRMesh/MRMesh.cpp:178–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178float Mesh::signedDistance( const Vector3f & pt, const MeshProjectionResult & proj, const FaceBitSet * region ) const
179{
180 if ( isOutsideByProjNorm( pt, proj, region ) )
181 return std::sqrt( proj.distSq );
182 else
183 return -std::sqrt( proj.distSq );
184}
185
186float Mesh::signedDistance( const Vector3f & pt ) const
187{

Callers 7

findSignedDistanceFunction · 0.80
findSignedDistanceOneWayFunction · 0.80
isNonIntersectingInsideFunction · 0.80
findSignedDistancesFunction · 0.80
createCutStructure_Method · 0.80
projectAllMeshVerticesFunction · 0.80

Calls 1

findSignedDistanceFunction · 0.70

Tested by

no test coverage detected