A3DRiRepresentationItemComputeTessellation

A3DStatus A3DRiRepresentationItemComputeTessellation(A3DRiRepresentationItem *pRi, const A3DRWParamsTessellationData *pTessellationParametersData)
A3DStatus A3DRiRepresentationItemComputeTessellation(A3DRiRepresentationItem* pRi, const A3DRWParamsTessellationData* pTessellationParametersData)

Calculates the tessellation of a previously created A3DRiRepresentationItem with an A3DRWParamsTessellationData parameters.

4.0

Return Values

A3D_INVALID_DATA_STRUCT_SIZE:

A3D_INVALID_DATA_STRUCT_NULL:

A3D_SET_INCONSISTENT_EMPTY:

A3D_INVALID_ENTITY_TYPE:

A3D_SUCCESS:

If the A3DRiRepresentationItem entity has already been tessellated, the previous tessellation will be replaced by the new one.

The input representation item must be one of the following entity types: kA3DTypeRiBrepModel, kA3DTypeRiCurve, kA3DTypeDrawingBlockBasic, or kA3DTypeDrawingBlockOperator.

For any other entity type, this function returns A3D_INVALID_ENTITY_TYPE.

Returns

A3D_SUCCESS on success, or an error code on failure