MeshLib Documentation
Loading...
Searching...
No Matches
MRInTreePathBuilder.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRVector.h"
4
5namespace MR
6{
7
11{
12public:
13 MRMESH_API InTreePathBuilder( const MeshTopology & topology, const UndirectedEdgeBitSet & treeEdges );
14
16 [[nodiscard]] MRMESH_API EdgePath build( VertId start, VertId finish ) const;
17
18private:
21 [[nodiscard]] EdgeId getEdgeBack_( VertId v ) const;
22
23 const MeshTopology & topology_;
24 const UndirectedEdgeBitSet & treeEdges_;
26 Vector<int, VertId> vertDistance_;
27};
28
29} //namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Definition MRInTreePathBuilder.h:11
MRMESH_API EdgePath build(VertId start, VertId finish) const
finds the path in tree from start vertex to finish vertex
MRMESH_API InTreePathBuilder(const MeshTopology &topology, const UndirectedEdgeBitSet &treeEdges)
Definition MRMesh/MRMeshTopology.h:18
std::vector<T>-like container that requires specific indexing type,
Definition MRMesh/MRVector.h:20
Definition MRCameraOrientationPlugin.h:8
std::vector< EdgeId > EdgePath
Definition MRMesh/MRMeshFwd.h:98