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

Public Member Functions

VertBitSet getValidVerts ()
 returns cached set of all valid vertices
FaceBitSet getValidFaces ()
 returns cached set of all valid faces
number faceSize ()
 returns the number of face records including invalid ones
number findNumHoles ()
Uint32Array getTriVerts (number f)
Uint32Array getLeftTriVerts (number a)
Uint32Array findHoleRepresentiveEdges ()
Triangulation getTriangulation ()

Detailed Description

Mesh Topology

Member Function Documentation

◆ faceSize()

number MeshTopology::faceSize ( )

returns the number of face records including invalid ones

◆ findHoleRepresentiveEdges()

Uint32Array MeshTopology::findHoleRepresentiveEdges ( )

returns one edge with no valid left face for every boundary in the mesh; if region is given, then returned edges must have valid right faces from the region

◆ findNumHoles()

number MeshTopology::findNumHoles ( )

returns the number of hole loops in the mesh;

Parameters
holeRepresentativeEdgesoptional output of the smallest edge id with no valid left face in every hole

◆ getLeftTriVerts()

Uint32Array MeshTopology::getLeftTriVerts ( number a)

gets 3 vertices of the left face ( face-id may not exist, but the shape must be triangular) the vertices are returned in counter-clockwise order if look from mesh outside: v0 = org( a ), v1 = dest( a )

◆ getTriangulation()

Triangulation MeshTopology::getTriangulation ( )

returns three vertex ids for valid triangles (which can be accessed by FaceId), vertex ids for invalid triangles are undefined, and shall not be read

◆ getTriVerts()

Uint32Array MeshTopology::getTriVerts ( number f)

gets 3 vertices of given triangular face; the vertices are returned in counter-clockwise order if look from mesh outside

◆ getValidFaces()

FaceBitSet MeshTopology::getValidFaces ( )

returns cached set of all valid faces

◆ getValidVerts()

VertBitSet MeshTopology::getValidVerts ( )

returns cached set of all valid vertices


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