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

Method projectPoint

source/MRMesh/MRMesh.cpp:506–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504}
505
506bool Mesh::projectPoint( const Vector3f& point, PointOnFace& res, float maxDistSq, const FaceBitSet * region, const AffineXf3f * xf ) const
507{
508 auto proj = findProjection( point, { *this, region }, maxDistSq, xf );
509 if ( !( proj.distSq < maxDistSq ) )
510 return false;
511
512 res = proj.proj;
513 return true;
514}
515
516bool Mesh::projectPoint( const Vector3f& point, MeshProjectionResult& res, float maxDistSq, const FaceBitSet* region, const AffineXf3f * xf ) const
517{

Callers 7

TESTFunction · 0.45
getIntervalsFunction · 0.45
projectSplineAsMTPFunction · 0.45
getApproximationRMS_Method · 0.45
getVertsForRefineFeatureFunction · 0.45
separateClosedContourFunction · 0.45

Calls 1

findProjectionFunction · 0.85

Tested by 1

TESTFunction · 0.36