getTriangles
fun getTriangles(result: TypedArray<*, *, *, *>? = definedExternally): TypedArray<*, *, *, *>(source)
Returns an array view of this polygon's triangle indices, represented as three vertex indices per triangle.
If 'result' argument is given, triangle indices are written to that array and returned. Otherwise, returns an ArrayView on collection memory — changes to this array will not trigger render updates, which requires .setTriangles().