49 std::vector<VertDuplication> * dups =
nullptr,
69 const Triangulation & t, VertId maxVertId,
70 const std::vector<MeshPiece> & pieces,
81 FaceBitSet * createdFaces =
nullptr );
120 VertMap * optionalVertOldToNew =
nullptr );
#define MRMESH_API
Definition MRMeshFwd.h:85
Definition MRMeshTopology.h:31
Vector<T> is indexed by size_t.
Definition MRVector.h:24
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:790
VertMap vmap
vert of part -> vert of whole mesh
Definition MRMeshBuilder.h:61
std::vector< MeshBuilder::VertDuplication > * optionalDuplications
this can be used to map attributes to duplicated vertices
Definition MRMeshBuilder.h:111
bool uniteOnlyBd
if true then only boundary vertices can be united, all internal vertices (even close ones) will remai...
Definition MRMeshBuilder.h:99
MeshTopology fromFaceSoup(const 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...
Mesh fromPointTriples(const std::vector< Triangle3f > &posTriples)
MeshTopology fromTriangles(const Triangulation &t, const BuildSettings &settings={}, ProgressCallback progressCb={})
VertBitSet * region
if true, only vertices from this region can be affected
Definition MRMeshBuilder.h:102
MeshTopology fromDisjointMeshPieces(const Triangulation &t, VertId maxVertId, const std::vector< MeshPiece > &pieces, const BuildSettings &settings={})
VertMap * optionalVertOldToNew
is the mapping of vertices: before -> after
Definition MRMeshBuilder.h:108
bool duplicateNonManifold
if true - try to duplicates non-manifold vertices instead of removing faces
Definition MRMeshBuilder.h:105
float closeDist
vertices located closer to each other than this distance will be united
Definition MRMeshBuilder.h:96
MeshTopology topology
Definition MRMeshBuilder.h:62
FaceMap fmap
face of part -> face of whole mesh (before settings.shiftFaceId is added)
Definition MRMeshBuilder.h:60
size_t addTriangles(MeshTopology &res, const Triangulation &t, const BuildSettings &settings={})
std::function< bool(VertId e0, VertId e1, VertId vRef, VertId vCand, VertId vBest)> BetterDupContinuation
Definition MRVertDuplication.h:47
MeshTopology fromTrianglesDuplicatingNonManifoldVertices(Triangulation &t, std::vector< VertDuplication > *dups=nullptr, const BuildSettings &settings={}, const BetterDupContinuation &betterCont={})
FaceBitSet rem
remaining triangles of part, not in topology
Definition MRMeshBuilder.h:63
std::vector< int > computeTrianglesRepetitions(const Triangulation &t)
int uniteCloseVertices(Mesh &mesh, float closeDist, bool uniteOnlyBd=true, VertMap *optionalVertOldToNew=nullptr)
Building topologies by triangles.
Definition MRIdentifyVertices.h:16
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
Definition MRMeshBuilderTypes.h:33
a part of a whole mesh to be constructed
Definition MRMeshBuilder.h:59
Definition MRMeshBuilder.h:94