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

Function computeGeodesicPath

source/MRMesh/MRSurfacePath.cpp:533–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533Expected<SurfacePath, PathError> computeGeodesicPath( const Mesh & mesh,
534 const MeshTriPoint & start, const MeshTriPoint & end, GeodesicPathApprox atype,
535 int maxGeodesicIters )
536{
537 MR_TIMER;
538 auto res = computeGeodesicPathApprox( mesh, start, end, atype );
539 if ( res.has_value() && !res.value().empty() )
540 reducePath( mesh, start, res.value(), end, maxGeodesicIters );
541 return res;
542}
543
544HashMap<VertId, VertId> computeClosestSurfacePathTargets( const Mesh & mesh,
545 const VertBitSet & starts, const VertBitSet & ends,

Callers 5

TESTFunction · 0.85
projectSplineAsMTPFunction · 0.85
cutMeshByProjectionFunction · 0.85
prepareTerrainCutMethod · 0.85

Calls 4

reducePathFunction · 0.85
emptyMethod · 0.45
valueMethod · 0.45

Tested by 1

TESTFunction · 0.68