MeshLib Documentation
Loading...
Searching...
No Matches
MRMeshBuilder.h File Reference
#include "MRMeshFwd.h"
#include "MRVector.h"

Go to the source code of this file.

Functions

MR_EXTERN_C_BEGIN MRMESHC_API int mrMeshBuilderUniteCloseVertices (MRMesh *mesh, float closeDist, bool uniteOnlyBd, MRVertMap *optionalVertOldToNew)
 

Function Documentation

◆ mrMeshBuilderUniteCloseVertices()

MR_EXTERN_C_BEGIN MRMESHC_API int mrMeshBuilderUniteCloseVertices ( MRMesh * mesh,
float closeDist,
bool uniteOnlyBd,
MRVertMap * optionalVertOldToNew )

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