setFromAttributeAndIndices

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

Return

A reference to this triangle.

Parameters

attribute

A buffer attribute with 3D points data.

i0

The attribute index representing the first corner of the triangle.

i1

The attribute index representing the second corner of the triangle.

i2

The attribute index representing the third corner of the triangle.