Format
typescript
Mesh.trianglesclass: Mesh
Description
The triangle index array of the mesh.
The triangle index array is used to define the triangular faces of the mesh by specifying the indices of the vertices that make up each face.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
number[] | The triangle index array. |
Code Example
typescript
let mesh = Resources.Load<Mesh>(Mesh, "meshId");
mesh.triangles;