Triangle

Triangle

Only creates an attributeMap with MeshData.POSITION and MeshData.NORMAL.

Constructor

new Triangle(verts)

Parameters:
Name Type Description
verts Array.<number>

array with 9 elements. These 9 elements must be 3 x, y, z positions.

Methods

rebuild() → {Triangle}

Builds or rebuilds the mesh data.