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

Function computeSurfacePath

source/MRMesh/MRSurfacePath.cpp:522–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520}
521
522Expected<SurfacePath, PathError> computeSurfacePath( const MeshPart & mp,
523 const MeshTriPoint & start, const MeshTriPoint & end, int maxGeodesicIters,
524 const VertBitSet* vertRegion, VertScalars * outSurfaceDistances )
525{
526 MR_TIMER;
527 auto res = computeFastMarchingPath( mp, start, end, vertRegion, outSurfaceDistances );
528 if ( res.has_value() && !res.value().empty() )
529 reducePath( mp.mesh, start, res.value(), end, maxGeodesicIters );
530 return res;
531}
532
533Expected<SurfacePath, PathError> computeGeodesicPath( const Mesh & mesh,
534 const MeshTriPoint & start, const MeshTriPoint & end, GeodesicPathApprox atype,

Callers 4

addSurfacePathFunction · 0.85
constantZToolPathFunction · 0.85
constantCuspToolPathFunction · 0.85
separateClosedContourFunction · 0.85

Calls 4

computeFastMarchingPathFunction · 0.85
reducePathFunction · 0.85
emptyMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected