TriangulateFace takes several arguments (cf. SC::Store::Utils::TriangulateFace ) to triangulate a supplied polygonal face. While most arguments are straightforward, the face_list
is a little more complicated.
The first number in the face list array indicates the number of indices defining a face. This is followed by those indices (in the points array). This pattern repeats for subsequent faces. If you have two triangles, the face list array might be as follows;
{ 3, 0, 1, 2, 3, 2, 3, 0 } |
For the full example, check out our forum post.