setFromPointsAndIndices

fun setFromPointsAndIndices(points: List<Vector3>, i0: Int, i1: Int, i2: Int): Triangle

Sets the triangle's vertices by copying the given array values.

Return

A reference to this triangle.

Parameters

points

An array with 3D points.

i0

The array index representing the first corner of the triangle.

i1

The array index representing the second corner of the triangle.

i2

The array index representing the third corner of the triangle.