MeshLib Documentation
Loading...
Searching...
No Matches
MRMeshBuilder.h File Reference
#include "MRMeshBuilderTypes.h"
#include "MRMesh.h"
#include "MRProgressCallback.h"

Go to the source code of this file.

Classes

struct  MR::MeshBuilder::VertDuplication
 
struct  MR::MeshBuilder::MeshPiece
 

Namespaces

namespace  MR
 
namespace  MR::MeshBuilder
 Building topologies by triangles.
 

Functions

MRMESH_API MeshTopology MR::MeshBuilder::fromTriangles (const Triangulation &t, const BuildSettings &settings={}, ProgressCallback progressCb={})
 
MRMESH_API size_t MR::MeshBuilder::duplicateNonManifoldVertices (Triangulation &t, FaceBitSet *region=nullptr, std::vector< VertDuplication > *dups=nullptr)
 
MRMESH_API MeshTopology MR::MeshBuilder::fromTrianglesDuplicatingNonManifoldVertices (Triangulation &t, std::vector< VertDuplication > *dups=nullptr, const BuildSettings &settings={})
 
MRMESH_API Mesh MR::MeshBuilder::fromPointTriples (const std::vector< Triangle3f > &posTriples)
 
MRMESH_API MeshTopology MR::MeshBuilder::fromDisjointMeshPieces (const Triangulation &t, VertId maxVertId, const std::vector< MeshPiece > &pieces, const BuildSettings &settings={})
 
MRMESH_API void MR::MeshBuilder::addTriangles (MeshTopology &res, const Triangulation &t, const BuildSettings &settings={})
 
MRMESH_API void MR::MeshBuilder::addTriangles (MeshTopology &res, std::vector< VertId > &vertTriples, FaceBitSet *createdFaces=nullptr)
 
MRMESH_API MeshTopology MR::MeshBuilder::fromFaceSoup (const std::vector< VertId > &verts, const Vector< VertSpan, FaceId > &faces, const BuildSettings &settings={}, ProgressCallback progressCb={})
 construct mesh topology from face soup, where each face can have arbitrary degree (not only triangles)
 
MRMESH_API int MR::MeshBuilder::uniteCloseVertices (Mesh &mesh, float closeDist, bool uniteOnlyBd=true, VertMap *optionalVertOldToNew=nullptr)