3#include "MRPch/MRBindingMacros.h"
31 UndirectedEdgeBitSet * outCutEdges =
nullptr,
FaceHashMap * new2Old =
nullptr,
float eps = 0, std::function<
void( EdgeId, EdgeId,
float )> onEdgeSplitCallback =
nullptr );
44 std::vector<EdgeLoop> * outCutContours,
FaceHashMap * new2Old =
nullptr,
float eps = 0, std::function<
void( EdgeId, EdgeId,
float )> onEdgeSplitCallback =
nullptr );
#define MRMESH_API
Definition MRMeshFwd.h:80
MR_BIND_IGNORE void trimWithPlane(Mesh &mesh, const Plane3f &plane, UndirectedEdgeBitSet *outCutEdges=nullptr, FaceHashMap *new2Old=nullptr, float eps=0, std::function< void(EdgeId, EdgeId, float)> onEdgeSplitCallback=nullptr)
trim mesh by plane
float eps
if existing vertex is within eps distance from the plane, then move the vertex not introducing new on...
Definition MRMeshTrimWithPlane.h:52
Plane3f
Definition MRMeshFwd.h:393
Mesh * otherPart
left part of the trimmed mesh
Definition MRMeshTrimWithPlane.h:67
HashMap< FaceId, FaceId > FaceHashMap
Definition MRMeshFwd.h:610
FaceHashMap * new2Old
mapping from newly appeared triangle to its original triangle (part to full)
Definition MRMeshTrimWithPlane.h:65
std::vector< EdgeLoop > * otherOutCutContours
newly appeared hole contours where each edge does not have right face in otherPart
Definition MRMeshTrimWithPlane.h:71
std::function< void(EdgeId, EdgeId, float)> onEdgeSplitCallback
is invoked each time when an edge is split. Receives edge ID before split, edge ID after split,...
Definition MRMeshTrimWithPlane.h:54
UndirectedEdgeBitSet * outCutEdges
newly appeared hole boundary edges
Definition MRMeshTrimWithPlane.h:61
FaceHashMap * otherNew2Old
mapping from newly appeared triangle to its original triangle (part to full) in otherPart
Definition MRMeshTrimWithPlane.h:69
FaceBitSet subdivideWithPlane(Mesh &mesh, const Plane3f &plane, FaceHashMap *new2Old=nullptr, float eps=0, std::function< void(EdgeId, EdgeId, float)> onEdgeSplitCallback=nullptr)
Plane3f plane
Input plane to cut mesh with.
Definition MRMeshTrimWithPlane.h:50
std::array< Vector3f, 3 > MR_BIND_IGNORE
Definition MRMeshBuilderTypes.h:13
std::vector< EdgeLoop > * outCutContours
newly appeared hole contours where each edge does not have right face
Definition MRMeshTrimWithPlane.h:63
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
stores optional output params for trimWithPlane function
Definition MRMeshTrimWithPlane.h:59
stores basic params for trimWithPlane function
Definition MRMeshTrimWithPlane.h:48