69 VertId * outPathStart =
nullptr,
70 VertId * outPathFinish =
nullptr,
71 float maxPathLen = FLT_MAX );
82 VertId * outPathStart =
nullptr,
83 VertId * outPathFinish =
nullptr,
84 float maxPathLen = FLT_MAX );
91 VertId start, VertId finish,
float maxPathMetric = FLT_MAX );
96 VertId start, VertId finish,
float maxPathMetric = FLT_MAX );
103 VertId * outPathStart =
nullptr,
104 VertId * outPathFinish =
nullptr,
105 float maxPathMetric = FLT_MAX );
109 VertId start,
const VertBitSet& finish,
float maxPathMetric = FLT_MAX );
117 EdgeBitSet * outNotLoopEdges =
nullptr );
148 std::vector<MeshEdgePoint> * outIntersections =
nullptr );
152 std::vector<Vector3f> * outIntersections =
nullptr );
156 std::vector<EdgeId> * outInPlaneEdges =
nullptr );
#define MRMESH_API
Definition MRMeshFwd.h:80
Definition MRMeshTopology.h:23
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:753
R calcOrientedArea(const Contour2< T > &contour)
Definition MRContour.h:18
std::vector< EdgeId > EdgeLoop
Definition MRMeshFwd.h:148
Contour3< float > Contour3f
Definition MRMeshFwd.h:382
Plane3f
Definition MRMeshFwd.h:393
std::function< float(EdgeId)> EdgeMetric
Definition MRMeshFwd.h:584
std::vector< EdgeId > EdgePath
Definition MRMeshFwd.h:147
float metric
Definition MREdgePaths.h:53
VertId v
Definition MREdgePaths.h:52
EdgePath buildShortestPathBiDir(const Mesh &mesh, VertId start, VertId finish, float maxPathLen=FLT_MAX)
int getPathPlaneIntersections(const Mesh &mesh, const EdgePath &path, const Plane3f &plane, std::vector< MeshEdgePoint > *outIntersections=nullptr)
finds all intersection points between given path and plane, adds them in outIntersections and returns...
EdgeLoop extractLongestClosedLoop(const Mesh &mesh, const std::vector< EdgeId > &inEdges)
bool dilateRegionByMetric(const MeshTopology &topology, const EdgeMetric &metric, FaceBitSet ®ion, float dilation, ProgressCallback callback={})
expands the region (of faces or vertices) on given metric value. returns false if callback also retur...
std::vector< VertId > getVertexOrdering(const MeshTopology &topology, VertBitSet region)
returns all vertices from given region ordered in each connected component in breadth-first way
double calcPathLength(const EdgePath &path, const Mesh &mesh)
Definition MREdgePaths.h:35
EdgePath buildSmallestMetricPath(const MeshTopology &topology, const EdgeMetric &metric, VertId start, VertId finish, float maxPathMetric=FLT_MAX)
builds shortest path in given metric from start to finish vertices; if no path can be found then empt...
bool erodeRegionByMetric(const MeshTopology &topology, const EdgeMetric &metric, FaceBitSet ®ion, float dilation, ProgressCallback callback={})
shrinks the region (of faces or vertices) on given metric value. returns false if callback also retur...
std::vector< EdgeLoop > splitOnSimpleLoops(const MeshTopology &topology, std::vector< EdgeLoop > &&loops)
given a number of edge loops, splits every loop that passes via a vertex more than once on smaller lo...
bool erodeRegion(const Mesh &mesh, FaceBitSet ®ion, float dilation, ProgressCallback callback={})
shrinks the region (of faces or vertices) on given value (in meters). returns false if callback also ...
bool dilateRegion(const Mesh &mesh, FaceBitSet ®ion, float dilation, ProgressCallback callback={})
expands the region (of faces or vertices) on given value (in meters). returns false if callback also ...
void sortPathsByMetric(std::vector< EdgePath > &paths, EdgeMetric metric)
sorts given paths in ascending order of their metrics
void addLeftBand(const MeshTopology &topology, const EdgeLoop &loop, FaceBitSet &addHere)
adds all faces incident to loop vertices and located to the left from the loop to given FaceBitSet
EdgePath buildSmallestMetricPathBiDir(const MeshTopology &topology, const EdgeMetric &metric, VertId start, VertId finish, float maxPathMetric=FLT_MAX)
bool isEdgePath(const MeshTopology &topology, const std::vector< EdgeId > &edges)
returns true if every next edge starts where previous edge ends
EdgePath buildShortestPathAStar(const Mesh &mesh, VertId start, VertId finish, float maxPathLen=FLT_MAX)
void sortPathsByLength(std::vector< EdgePath > &paths, const Mesh &mesh)
Definition MREdgePaths.h:43
int getPathEdgesInPlane(const Mesh &mesh, const EdgePath &path, const Plane3f &plane, float tolerance=0.0f, std::vector< EdgeId > *outInPlaneEdges=nullptr)
finds all path edges located in given plane with given tolerance, adds them in outInPlaneEdges and re...
EdgePath buildShortestPath(const Mesh &mesh, VertId start, VertId finish, float maxPathLen=FLT_MAX)
bool isEdgeLoop(const MeshTopology &topology, const std::vector< EdgeId > &edges)
returns true if every next edge starts where previous edge ends, and start vertex coincides with fini...
int getContourPlaneIntersections(const Contour3f &path, const Plane3f &plane, std::vector< Vector3f > *outIntersections=nullptr)
finds all intersection points between given contour and plane, adds them in outIntersections and retu...
std::vector< EdgeLoop > extractClosedLoops(const MeshTopology &topology, EdgeBitSet &edges)
finds all closed loops from given edges and removes them from edges
double calcPathMetric(const EdgePath &path, EdgeMetric metric)
computes summed metric of all edges in the path
void reverse(EdgePath &path)
EdgeMetric edgeLengthMetric(const Mesh &mesh)
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRMeshTriPoint.h:26
Definition MREdgePaths.h:51