bool   sgC3DObject::Triangulate(SG_TRIANGULATION_TYPE TrianType);

 

Description:

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.

 

Arguments:

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