A3DSurfBaseWithDomainGetAsNurbs

A3DStatus A3DSurfBaseWithDomainGetAsNurbs(const A3DSurfBase *pSrf, const A3DDomainData *pOptDomain, A3DDouble dTolerance, A3DBool bUseSameParameterization, A3DSurfNurbsData *pData)
A3DStatus A3DSurfBaseWithDomainGetAsNurbs(const A3DSurfBase* pSrf, const A3DDomainData* pOptDomain, A3DDouble dTolerance, A3DBool bUseSameParameterization, A3DSurfNurbsData* pData)

Populates the A3DSurfNurbsData structure from any type of A3DSurfBase and an optional restriction domain A3DDomainData.

14.2

This structure must be freed with A3DSurfNurbsGet() call.

This function can modify the parameterization for surface. You must process related entities accordingly.

If pOptDomain is defined it must be contained by surface domaine.

See note on Tolerance explanation at A3DCrvBaseGetAsNurbs() definition.

This function can be called with any type of curve.

Return Values

A3D_INVALID_DATA_STRUCT_SIZE:

A3D_INVALID_DATA_STRUCT_NULL:

A3D_INTERVAL_INCONSISTENT_DATA:

A3D_SRF_NURBS_TOO_TINY_TOLERANCE:

A3D_SRF_INVALID_PARAMETERS:

A3D_SUCCESS:

Returns

A3D_SUCCESS on success, or an error code on failure