49 std::vector<VertDuplication>* dups =
nullptr,
VertId lastValidVert = {} );
56 std::vector<VertDuplication> * dups =
nullptr,
76 const std::vector<MeshPiece> & pieces,
90 const BuildSettings & settings = {}, ProgressCallback progressCb = {} );
92struct UniteCloseParams
95 float closeDist = 0.0f;
98 bool uniteOnlyBd =
true;
101 VertBitSet* region =
nullptr;
104 bool duplicateNonManifold =
false;
107 VertMap* optionalVertOldToNew =
nullptr;
110 std::vector<MeshBuilder::VertDuplication>* optionalDuplications =
nullptr;
119 VertMap * optionalVertOldToNew =
nullptr );
#define MRMESH_API
Definition MRMeshFwd.h:80
Definition MRMeshBuilderTypes.h:30
Definition MRMesh/MRMeshBuilder.h:65
Definition MRMesh/MRMeshBuilder.h:93
Definition MRMesh/MRMeshTopology.h:19
Definition MRMesh/MRMesh.h:23
std::vector<T>-like container that requires specific indexing type,
Definition MRVector.h:19
MRMESH_API void addTriangles(MeshTopology &res, const Triangulation &t, const BuildSettings &settings={})
MRMESH_API size_t duplicateNonManifoldVertices(Triangulation &t, FaceBitSet *region=nullptr, std::vector< VertDuplication > *dups=nullptr, VertId lastValidVert={})
MRMESH_API Mesh fromPointTriples(const std::vector< Triangle3f > &posTriples)
MRMESH_API MeshTopology fromTrianglesDuplicatingNonManifoldVertices(Triangulation &t, std::vector< VertDuplication > *dups=nullptr, const BuildSettings &settings={})
MRMESH_API MeshTopology 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 MeshTopology fromDisjointMeshPieces(const Triangulation &t, VertId maxVertId, const std::vector< MeshPiece > &pieces, const BuildSettings &settings={})
MRMESH_API MeshTopology fromTriangles(const Triangulation &t, const BuildSettings &settings={}, ProgressCallback progressCb={})
MRMESH_API int uniteCloseVertices(Mesh &mesh, float closeDist, bool uniteOnlyBd=true, VertMap *optionalVertOldToNew=nullptr)
Definition MRCameraOrientationPlugin.h:8