getTriangles method

Uint16List getTriangles()

Triplets of vertex indices which describe the mesh's triangulation.

Implementation

Uint16List getTriangles() {
  final num = _bindings.spine_mesh_attachment_get_num_triangles(_attachment);
  final triangles = _bindings.spine_mesh_attachment_get_triangles(_attachment);
  return triangles.asTypedList(num);
}