bool   sgC3DObject::Triangulate(SG_TRIANGULATION_TYPE TrianType);



Triangulates a 3D object if it hasn't been triangulated yet. If the GetTriangles function returns a value that is not equal to NULL the object has already been triangulated.



TrianType – object triangulation type. To learn more about the triangulation types, see the SG_TRIANGULATION_TYPE  description.


Returned value:

If succeed the function returns true, otherwise false.


See also:

AutoTriangulate SG_TRIANGULATION_TYPE GetTriangles