MeshLib C# Docs
Loading...
Searching...
No Matches
MR.MeshBuilder Class Reference

Static Public Member Functions

static unsafe MR.MeshTopology fromTriangles (MR.Const_Triangulation t, MR.MeshBuilder.Const_BuildSettings? settings=null, MR.Std._ByValue_Function_BoolFuncFromFloat? progressCb=null)
 construct mesh topology from a set of triangles with given ids; if skippedTris is given then it receives all input triangles not added in the resulting topology Generated from function MR.MeshBuilder.fromTriangles. Parameter settings defaults to {}. Parameter progressCb defaults to {}.
 
static unsafe ulong duplicateNonManifoldVertices (MR.Triangulation t, MR.FaceBitSet? region=null, MR.Std.Vector_MRMeshBuilderVertDuplication? dups=null, MR._InOpt_VertId lastValidVert=default)
 Generated from function MR.MeshBuilder.duplicateNonManifoldVertices. Parameter lastValidVert defaults to {}.
 
static unsafe MR.MeshTopology fromTrianglesDuplicatingNonManifoldVertices (MR.Triangulation t, MR.Std.Vector_MRMeshBuilderVertDuplication? dups=null, MR.MeshBuilder.Const_BuildSettings? settings=null)
 Generated from function MR.MeshBuilder.fromTrianglesDuplicatingNonManifoldVertices. Parameter settings defaults to {}.
 
static unsafe MR.Mesh fromPointTriples (MR.Std.Const_Vector_StdArrayMRVector3f3 posTriples)
 Generated from function MR.MeshBuilder.fromPointTriples.
 
static unsafe MR.MeshTopology fromDisjointMeshPieces (MR.Const_Triangulation t, MR.VertId maxVertId, MR.Std.Const_Vector_MRMeshBuilderMeshPiece pieces, MR.MeshBuilder.Const_BuildSettings? settings=null)
 Generated from function MR.MeshBuilder.fromDisjointMeshPieces. Parameter settings defaults to {}.
 
static unsafe void addTriangles (MR.MeshTopology res, MR.Const_Triangulation t, MR.MeshBuilder.Const_BuildSettings? settings=null)
 Generated from function MR.MeshBuilder.addTriangles. Parameter settings defaults to {}.
 
static unsafe void addTriangles (MR.MeshTopology res, MR.Std.Vector_MRVertId vertTriples, MR.FaceBitSet? createdFaces=null)
 Generated from function MR.MeshBuilder.addTriangles.
 
static unsafe MR.MeshTopology fromFaceSoup (MR.Std.Const_Vector_MRVertId verts, MR.Const_Vector_MRMeshBuilderVertSpan_MRFaceId faces, MR.MeshBuilder.Const_BuildSettings? settings=null, MR.Std._ByValue_Function_BoolFuncFromFloat? progressCb=null)
 construct mesh topology from face soup, where each face can have arbitrary degree (not only triangles) Generated from function MR.MeshBuilder.fromFaceSoup. Parameter settings defaults to {}. Parameter progressCb defaults to {}.
 
static unsafe int uniteCloseVertices (MR.Mesh mesh, float closeDist, bool? uniteOnlyBd=null, MR.VertMap? optionalVertOldToNew=null)
 the function finds groups of mesh vertices located closer to each other than
 
static unsafe int uniteCloseVertices (MR.Mesh mesh, MR.MeshBuilder.Const_UniteCloseParams? params_=null)
 the function finds groups of mesh vertices located closer to each other than
 

Member Function Documentation

◆ uniteCloseVertices() [1/2]

static unsafe int MR.MeshBuilder.uniteCloseVertices ( MR.Mesh mesh,
float closeDist,
bool? uniteOnlyBd = null,
MR.VertMap? optionalVertOldToNew = null )
inlinestatic

the function finds groups of mesh vertices located closer to each other than

Parameters
closeDist,andunites such vertices in one; then the mesh is rebuilt from the remaining triangles
optionalVertOldToNewis the mapping of vertices: before -> after
uniteOnlyBdif true then only boundary vertices can be united, all internal vertices (even close ones) will remain
Returns
the number of vertices united, 0 means no change in the mesh Generated from function MR.MeshBuilder.uniteCloseVertices. Parameter uniteOnlyBd defaults to true.

◆ uniteCloseVertices() [2/2]

static unsafe int MR.MeshBuilder.uniteCloseVertices ( MR.Mesh mesh,
MR.MeshBuilder.Const_UniteCloseParams? params_ = null )
inlinestatic

the function finds groups of mesh vertices located closer to each other than

Parameters
params.closeDist,andunites such vertices in one; then the mesh is rebuilt from the remaining triangles
Returns
the number of vertices united, 0 means no change in the mesh Generated from function MR.MeshBuilder.uniteCloseVertices. Parameter params_ defaults to {}.

The documentation for this class was generated from the following files: