Method GetTriangles
GetTriangles(RideID)
Fetches the triangle list for the specified sub-mesh on this object. Each integer in the returned triangle list is a vertex index, which is used as an offset into the Mesh's vertex arrays. See GetVertices. The triangle list contains a multiple of three indices, one for each corner in each triangle.
Declaration
int[] GetTriangles(RideID mesh)
Parameters
Type | Name | Description |
---|---|---|
RideID | mesh | ID of the mesh. |
Returns
Type | Description |
---|---|
System.Int32[] | Returns the triangle list for the specified sub-mesh on this object. |
GetTriangles(RideID, ref List<Int32>)
Fetches the triangle list for the specified sub-mesh on this object. Each integer in the returned triangle list is a vertex index, which is used as an offset into the Mesh's vertex arrays. See GetVertices. The triangle list contains a multiple of three indices, one for each corner in each triangle.
Declaration
void GetTriangles(RideID mesh, ref List<int> triangles)
Parameters
Type | Name | Description |
---|---|---|
RideID | mesh | ID of the mesh. |
List<System.Int32> | triangles | A list of vertex indices to populate. |