/
How-To: Using SC::Store::Utils::TriangulateFace

How-To: Using SC::Store::Utils::TriangulateFace

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.

Related content

Sample code: Compare two nodes
Sample code: Compare two nodes
Read with this
How-to: Add layers and filters
How-to: Add layers and filters
Read with this
How-To : Using HOOPS Communicator with SSL
How-To : Using HOOPS Communicator with SSL
Read with this
Web Viewer Articles
Web Viewer Articles
Read with this
FAQ: Is the Stream Cache format backward compatible?
FAQ: Is the Stream Cache format backward compatible?
Read with this
How to: Highlight nodes with multiple colors
How to: Highlight nodes with multiple colors
Read with this