Example of filling holes
int main()
{
for ( MR::EdgeId e : holeEdges )
{
}
}
MRMESH_API std::vector< EdgeId > findHoleRepresentiveEdges() const
returns one edge with no valid left face for every boundary in the mesh
MRMESH_API FillHoleMetric getUniversalMetric(const Mesh &mesh)
MRMESH_API void fillHole(Mesh &mesh, EdgeId a, const FillHoleParams ¶ms={})
Fills hole in mesh .
MRMESH_API Expected< Mesh > fromAnySupportedFormat(const std::filesystem::path &file, const MeshLoadSettings &settings={})
detects the format from file extension and loads mesh from it
MRMESH_API VoidOrErrStr toAnySupportedFormat(const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
detects the format from file extension and save mesh to it
Parameters structure for MR::fillHole Structure has some options to control MR::fillHole.
FillHoleMetric metric
Definition MRMesh/MRMeshFillHole.h:30
Definition MRMesh/MRMesh.h:23
MeshTopology topology
Definition MRMesh/MRMesh.h:24