#include <AlTesselate.h>
class AlTesselate
static statusCode uniform(AlDagNode* &outdag, const AlDagNode*,
AlTesselateTypes = kTESSELATE_TRIANGLE, int = 2, int = 2);
static statusCode adaptive(AlDagNode* &outdag, const AlDagNode*,
AlTesselateTypes = kTESSELATE_TRIANGLE, int = 2, int = 4,
double = 0.6, int = 2);
static statusCode number(AlDagNode* &outdag, const AlDagNode*, AlTesselateTypes
= kTESSELATE_TRIANGLE, int = 512, int = 32, double =
0.001);
// OBSOLETE - do not use
static AlDagNode* uniform( const AlDagNode*, AlTesselateTypes =
kTESSELATE_TRIANGLE, int = 2, int = 2);
static AlDagNode* adaptive( const AlDagNode*, AlTesselateTypes =
kTESSELATE_TRIANGLE, int = 2, int = 4, double = 0.96);
static AlDagNode* number( const AlDagNode*, AlTesselateTypes =
kTESSELATE_TRIANGLE, int = 512, int = 32, double = 0.01);
The methods in this library will generate polysets from the geometry below the AlDagNode, composed of either triangles or quadrilaterals based on the type argument to the method (either kTESSELATE_TRIANGLE or kTESSELATE_QUADRILATERAL).
Note that when tesselating a trimmed surface, some triangles may be created along the trim edge even though quadrilateral tesselation was selected.
< dagNode - the AlDagNode above the geometry to tesselate.
< type - kTESSELATE_TRIANGLE or kTESSELATE_QUADRILATERAL
< alongU - number of subdivisions in the U direction (minimum of 1)
< alongV - number of subdivisions in the V direction (minimum of 1)
sInvalidArgument - an argument was NULL or alongU or alongV was less than 1
sFailure - tesselation failed
< dagNode - the AlDagNode above the geometry to tesselate.
< type - kTESSELATE_TRIANGLE or kTESSELATE_QUADRILATERAL.
< min - minimum number of times the surface will be subdivided to meet the threshold (minimum of 1 )
< max - maximum number of times the surface will be subdivided to meet the threshold (minimum of 1 )
< threshold - how close an approximation to the original surface the tesselation must be (between 0 and 1). Higher values give a better approximation.
< uniformUV - uniform value used when handing FaceNodes
sInvalidArgument - an argument was NULL, or min or max was less than 1, or threshold was not in 0..1
sFailure - tesselation failed
Since the number of polygons that a spline surface may be tesselated into is not a continuous function; it may not be possible to achieve the desired number of polygons exactly. To prevent the search from continuing infinitely, there are tolerances that limit the tesselation. When a test tesselation finds parameter settings that give a polygon count that is between total - count_tol and total + count_tol, the search is stopped. Furthermore, since it may not be possible to find a tesselation that satisfies the requested total within the given count tolerance, this parameter allows the search to be ended when the changes the function makes to the adaptive subdivision curvature threshold parameter falls below curve_tol.
< dagNode - the AlDagNode above the geometry to tesselate.
< type - kTESSELATE_TRIANGLE or kTESSELATE_QUADRILATERAL.
< total - number of polygons to try for (minimum of 1 ).
< count_tol - how close to the total is acceptable (minimum of 0)
< curve_tol - adaptive subdivision tolerance (between 0 and 1). Lower values give a better approximation.
sInvalidArgument - NULL argument or total < 1, count_tol < 0, or curve_tol was not in 0..1
sFailure - tesselation failed