MeshLib JavaScript Docs
Loading...
Searching...
No Matches
MeshBuilder Class Reference

Building topologies by triangles. More...

Static Public Member Functions

static number uniteCloseVertices (Mesh mesh, number closeDist, boolean uniteOnlyBd)

Detailed Description

Building topologies by triangles.

This namespace provides API for building meshes.

Simple example with key steps

Warning
Vertices of triangles should have consistent bypass direction
Note
It is better to store topology directly in mesh
See also
MeshTopology

Member Function Documentation

◆ uniteCloseVertices()

number MeshBuilder::uniteCloseVertices ( Mesh mesh,
number closeDist,
boolean uniteOnlyBd )
static

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

Parameters
closeDistand unites 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

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