182 const std::function<
float(
int)>& offsetAtPoint,
SearchPathSettings searchSettings = {} );
185[[deprecated(
"use offsetSurfaceLineToMeshContours" )]] [[nodiscard]]
192[[deprecated(
"use offsetSurfaceLineToMeshContours" )]] [[nodiscard]]
194 const std::function<
float(
int)>& offsetAtPoint,
SearchPathSettings searchSettings = {} )
#define MRMESH_API
Definition MRMeshFwd.h:85
Expected< OneMeshContours > offsetSurfaceLineToMeshContours(const Mesh &mesh, const std::vector< MeshTriPoint > &surfaceLine, float offset, SearchPathSettings searchSettings={})
Makes continuous contour by iso-line from mesh tri points, if first and last meshTriPoint is the same...
void reserveForCut(Mesh &mesh, const Mesh &sizeOf, const OneMeshContours &contours)
CutMeshResult cutMesh(Mesh &mesh, const OneMeshContours &contours, const CutMeshParameters ¶ms={})
Cuts mesh by given contours.
Contour3< float > Contour3f
Definition MRMeshFwd.h:378
HashMap< UndirectedEdgeId, int > map
Definition MRContoursCut.h:24
const AffineXf3f * cont2mesh
if set - used to transform contours form its local space to mesh local space
Definition MRContoursCut.h:142
const SortIntersectionsData * sortData
Definition MRContoursCut.h:39
UndirectedEdgeBitSet splitEdges
Definition MRContoursCut.h:19
enum MR::CutMeshParameters::ForceFill None
Contours3< float > Contours3f
Definition MRMeshFwd.h:388
enum MR::CutMeshParameters::FillPart Both
std::vector< EdgePath > resultCut
Definition MRContoursCut.h:80
Expected< std::vector< EdgePath > > cutMeshByProjection(Mesh &mesh, const Contours3f &contours, const CutByProjectionSettings &settings)
Performs orthographic projection with of given contours to mesh and cut result lines,...
tl::expected< T, E > Expected
Definition MRExpected.h:31
FaceMap * new2OldMap
This is optional output - map from newly generated faces to old faces (N-1)
Definition MRContoursCut.h:42
Vector3f direction
direction of projection (in mesh space)
Definition MRContoursCut.h:139
Expected< FaceBitSet > cutMeshByContours(Mesh &mesh, const Contours3f &contours, const AffineXf3f &xf={})
phmap::flat_hash_map< K, V, Hash, Eq, Allocator< std::pair< const K, V > > > HashMap
Definition MRMeshFwd.h:631
FaceBitSet fbsWithContourIntersections
Definition MRContoursCut.h:87
Expected< OneMeshContours > convertMeshTriPointsSurfaceOffsetToMeshContours(const Mesh &mesh, const std::vector< MeshTriPoint > &surfaceLine, float offset, SearchPathSettings searchSettings={})
the old names stay in the bindings, since scripts call them
Definition MRContoursCut.h:186
NewEdgesMap * new2oldEdgesMap
Optional output map for each new edge introduced after cut maps edge from old topology or old face.
Definition MRContoursCut.h:68
ForceFill
Definition MRContoursCut.h:58
FillPart
Definition MRContoursCut.h:47
Expected< FaceBitSet > cutMeshByContour(Mesh &mesh, const Contour3f &contour, const AffineXf3f &xf={})
@ None
if bad faces occur, nothing is filled
Definition MRContoursCut.h:59
@ SplitCrossings
Definition MRContoursCut.h:64
@ All
Definition MRContoursCut.h:60
@ Both
Definition MRContoursCut.h:48
@ Right
Definition MRContoursCut.h:50
@ Left
Definition MRContoursCut.h:49
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
Settings structurer for cutMeshByProjection function.
Definition MRContoursCut.h:137
Parameters of MR::cutMesh.
Definition MRContoursCut.h:35
Definition MRContoursCut.h:76
Definition MRContoursCut.h:16
Special data type for MR::cutMesh: the intersections of all contours in one array,...
Definition MROneMeshContours.h:90
Geo path search settings.
Definition MROneMeshContours.h:171
Special data to sort intersections more accurate.
Definition MROneMeshContours.h:18