Skip to content

Format

typescript
Mesh.triangles

class: 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_nametypedescription

Return

typedescription
number[]The triangle index array.

Code Example

typescript
let mesh = Resources.Load<Mesh>(Mesh, "meshId");
mesh.triangles;