Skip to main content

Mesh

Properties


vertices (Vector3[])
uvs (Vector2[])
normals (Vector3[])
indices (int[])

Constructor


Empty constructor

Methods


addVertex(vertex : Vector3)

Adds a vertex to the mesh.

addUV(uv : Vector2)

Adds a UV to the mesh.

addNormal(normal : Vector3)

Adds a normal to the mesh.

addIndex(index : int)

Adds an index to the mesh.