alias_api.tessellate_adaptive

alias_api.tessellate_adaptive(node: alias_api.AlDagNode, type: alias_api.AlTessellateTypes, min: SupportsInt, max: SupportsInt, threshold: SupportsFloat, uniformUV: SupportsInt) tuple[int, alias_api.AlDagNode]

This method causes geometry below the AlDagNode to be subdivided into polygons depending on the curvature of the surface. Each spline patch will be converted into the minimum allowable number of polygons that satisfy the threshold parameter. If the threshold can not be satisfied by subdividing within the maximum number of subdivisions then the maximum subdivisions value will be used. When converting face nodes, adaptive subdivision cannot be used. Uniform subdivision is used with a spacing of ‘uniformUV’.

Parameters
  • node – The AlDagNode above the geometry to tessellate.

  • type – kTESSELATE_TRIANGLE or kTESSELATE_QUADRILATERAL.

  • min – The minimum number of times the surface will be subdivided meet the threshold (minimum of 1 ).

  • max – The maximum number of times the surface will be subdivided meet the threshold (minimum of 1 ).

  • threshold – The accuracy of the approximation (between 0 and 1). Higer values give a better approximations.

  • uniformUV – Uniform value used when handing FaceNodes.

Return A tuple containing status and dagNode

The status code result: Success - the file was stored successfully Failure - the wire file could not be stored properly InvalidArgument - unrecognized file type or fileName is NULL.

The resulting mesh Dag Node.