119[[deprecated(
"Use stitchHoles( mesh, a, b, params )" )]]
124[[deprecated(
"Use stitchHoles( mesh, params )" )]]
221MRMESH_API EdgeId
extendHole(
Mesh& mesh, EdgeId a, std::function<Vector3f(
const Vector3f &)> getVertPos, FaceBitSet * outNewFaces =
nullptr );
242 explicit operator bool()
const {
return newFaces > 0; }
#define MRMESH_API
Definition MRMeshFwd.h:82
Definition MRMeshTopology.h:30
void stitchHoles(Mesh &mesh, EdgeId a, EdgeId b, const StitchHolesParams ¶ms={})
Stitches two holes in Mesh .
void fillHoles(Mesh &mesh, const std::vector< EdgeId > &as, const FillHoleParams ¶ms={})
fill all holes given by their representative edges in
EdgeId makeBridgeEdge(MeshTopology &topology, EdgeId a, EdgeId b)
EdgeId extendHole(Mesh &mesh, EdgeId a, const Plane3f &plane, FaceBitSet *outNewFaces=nullptr)
void buildCylinderBetweenTwoHoles(Mesh &mesh, EdgeId a, EdgeId b, const StitchHolesParams ¶ms={})
bool isHoleBd(const MeshTopology &topology, const EdgeLoop &loop)
bool isFillingMultipleEdgeFree(const MeshTopology &topology, const HoleFillPlan &plan)
MakeBridgeResult makeQuadBridge(MeshTopology &topology, EdgeId a, EdgeId b, FaceBitSet *outNewFaces=nullptr)
VertId fillHoleTrivially(Mesh &mesh, EdgeId a, FaceBitSet *outNewFaces=nullptr)
Triangulates face of hole in mesh trivially .
std::vector< HoleFillPlan > getHoleFillPlans(const Mesh &mesh, const std::vector< EdgeId > &holeRepresentativeEdges, const FillHoleParams ¶ms={})
void splitQuad(MeshTopology &topology, EdgeId a, FaceBitSet *outNewFaces=nullptr)
given quadrangle face to the left of a, splits it in two triangles with new diagonal edge via dest(a)
HoleFillPlan getHoleFillPlan(const Mesh &mesh, EdgeId e, const FillHoleParams ¶ms={})
void executeHoleFillPlan(Mesh &mesh, EdgeId a0, HoleFillPlan &plan, FaceBitSet *outNewFaces=nullptr)
quickly triangulates the face or hole to the left of (e) given the plan (quickly compared to fillHole...
EdgeId makeDegenerateBandAroundHole(Mesh &mesh, EdgeId a, FaceBitSet *outNewFaces=nullptr)
std::vector< HoleFillPlan > getPlanarHoleFillPlans(const Mesh &mesh, const std::vector< EdgeId > &holeRepresentativeEdges)
MakeBridgeResult makeBridge(MeshTopology &topology, EdgeId a, EdgeId b, FaceBitSet *outNewFaces=nullptr)
HoleFillPlan getPlanarHoleFillPlan(const Mesh &mesh, EdgeId e, bool allowSweptLine=true)
std::vector< EdgeId > extendAllHoles(Mesh &mesh, const Plane3f &plane, FaceBitSet *outNewFaces=nullptr)
EdgeId buildBottom(Mesh &mesh, EdgeId a, Vector3f dir, float holeExtension, FaceBitSet *outNewFaces=nullptr)
void fillHole(Mesh &mesh, EdgeId a, const FillHoleParams ¶ms={})
Fills hole in mesh .
MakeBridgeResult makeSmoothBridge(Mesh &mesh, EdgeId a, EdgeId b, float samplingStep, FaceBitSet *outNewFaces=nullptr)
std::vector< EdgeId > EdgeLoop
Definition MRMeshFwd.h:153
Plane3f
Definition MRMeshFwd.h:388
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Holds metrics for fillHole and stitchHoles triangulation .
Definition MRMeshMetrics.h:40
Parameters structure for MR::fillHole Structure has some options to control MR::fillHole.
Definition MRMeshFillHole.h:27
FaceBitSet * outNewFaces
If not nullptr accumulate new faces.
Definition MRMeshFillHole.h:42
enum MR::FillHoleParams::MultipleEdgesResolveMode Simple
int maxPolygonSubdivisions
Definition MRMeshFillHole.h:67
bool makeDegenerateBand
Definition MRMeshFillHole.h:62
bool * stopBeforeBadTriangulation
Definition MRMeshFillHole.h:74
FillHoleMetric metric
Definition MRMeshFillHole.h:32
bool smoothBd
Definition MRMeshFillHole.h:39
MultipleEdgesResolveMode
Definition MRMeshFillHole.h:53
@ Simple
Definition MRMeshFillHole.h:55
@ None
Definition MRMeshFillHole.h:54
@ Strong
Definition MRMeshFillHole.h:56
concise representation of proposed hole triangulation
Definition MRHoleFillPlan.h:19
Definition MRMeshFillHole.h:233
int newFaces
the number of faces added to the mesh
Definition MRMeshFillHole.h:235
EdgeId na
Definition MRMeshFillHole.h:239
EdgeId nb
Definition MRMeshFillHole.h:239
Parameters structure for MR::stitchHoles Structure has some options to control MR::stitchHoles.
Definition MRMeshFillHole.h:85
FaceBitSet * outNewFaces
If not nullptr accumulate new faces.
Definition MRMeshFillHole.h:92
FillHoleMetric metric
Definition MRMeshFillHole.h:90