#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:79
MR_BIND_IGNORE auto end(const BitSet &)
Definition MRMesh/MRBitSet.h:309
MR_BIND_IGNORE MRMESH_API Expected< OneMeshContour > convertMeshTriPointsToMeshContour(const Mesh &mesh, const std::vector< MeshTriPoint > &surfaceLine, MeshTriPointsConnector connectorFn, std::vector< int > *pivotIndices=nullptr)
Makes continuous contour by mesh tri points, if first and last meshTriPoint is the same,...
MRMESH_API OneMeshContour convertSurfacePathWithEndsToMeshContour(const Mesh &mesh, const MeshTriPoint &start, const SurfacePath &surfacePath, const MeshTriPoint &end)
Converts SurfacePath to OneMeshContours.
MRMESH_API Expected< OneMeshContour > convertMeshTriPointsToClosedContour(const Mesh &mesh, const std::vector< MeshTriPoint > &surfaceLine, SearchPathSettings searchSettings={}, std::vector< int > *pivotIndices=nullptr)
Makes closed continuous contour by mesh tri points, note that first and last meshTriPoint should not ...
MRMESH_API OneMeshContours convertSurfacePathsToMeshContours(const Mesh &mesh, const std::vector< SurfacePath > &surfacePaths)
Converts SurfacePaths to OneMeshContours.
std::vector< OneMeshContour > OneMeshContours
Special data type for MR::cutMesh.
Definition MRMesh/MRIntersectionContour.h:9
Definition MRCameraOrientationPlugin.h:8
GeodesicPathApprox
the algorithm to compute approximately geodesic path
Definition MREnums.h:71
@ DijkstraAStar
compute edge-only path using A*-search algorithm
std::function< Expected< SurfacePath >(const MeshTriPoint &start, const MeshTriPoint &end, int startIndex, int endIndex)> MeshTriPointsConnector
Definition MROneMeshContours.h:68
MRMESH_API void subdivideLoneContours(Mesh &mesh, const OneMeshContours &contours, FaceHashMap *new2oldMap=nullptr)
MRMESH_API Contours3f extractMeshContours(const OneMeshContours &meshContours)
tl::expected< T, E > Expected
Definition MRExpected.h:25
std::vector< MeshEdgePoint > SurfacePath
Definition MRMesh/MRMeshFwd.h:416
HashMap< FaceId, FaceId > FaceHashMap
Definition MRMesh/MRMeshFwd.h:532
std::vector< ContinuousContour > ContinuousContours
Definition MRMesh/MRIntersectionContour.h:12
MRMESH_API void getOneMeshIntersectionContours(const Mesh &meshA, const Mesh &meshB, const ContinuousContours &contours, OneMeshContours *outA, OneMeshContours *outB, const CoordinateConverters &converters, const AffineXf3f *rigidB2A=nullptr)
std::function< Vector3i(const Vector3f &)> ConvertToIntVector
float-to-int coordinate converter
Definition MRMesh/MRPrecisePredicates3.h:47
Contours3< float > Contours3f
Definition MRMesh/MRMeshFwd.h:325
MRMESH_API OneMeshContours getOneMeshSelfIntersectionContours(const Mesh &mesh, const ContinuousContours &contours, const CoordinateConverters &converters, const AffineXf3f *rigidB2A=nullptr)
this struct contains coordinate converters float-int-float
Definition MRMesh/MRPrecisePredicates3.h:52
Definition MRMesh/MRMeshTriPoint.h:23
Definition MRMesh/MRMesh.h:22
Definition MROneMeshContours.h:33
std::vector< OneMeshIntersection > intersections
Definition MROneMeshContours.h:34
bool closed
Definition MROneMeshContours.h:35
Definition MROneMeshContours.h:25
std::variant< FaceId, EdgeId, VertId > primitiveId
Definition MROneMeshContours.h:26
Vector3f coordinate
Definition MROneMeshContours.h:28
Geo path search settings.
Definition MROneMeshContours.h:82
GeodesicPathApprox geodesicPathApprox
the algorithm to compute approximately geodesic path
Definition MROneMeshContours.h:83
int maxReduceIters
the maximum number of iterations to reduce approximate path length and convert it in geodesic path
Definition MROneMeshContours.h:84
Definition MROneMeshContours.h:14
const AffineXf3f * rigidB2A
Definition MROneMeshContours.h:18
const ContinuousContours & contours
Definition MROneMeshContours.h:16
ConvertToIntVector converter
Definition MROneMeshContours.h:17
size_t meshAVertsNum
Definition MROneMeshContours.h:19
bool isOtherA
Definition MROneMeshContours.h:20
const Mesh & otherMesh
Definition MROneMeshContours.h:15