TriangulateFace takes several arguments (cf. https://docs.techsoft3d.com/communicator/latest/build/api_ref/data_import/libsc/namespaceSC_1_1Store_1_1Utils.html#a10002aedb0ee2764603e5f5c0f5b9e07 ) 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.