A3DSimplifySurfaceWithAnalytics

A3DStatus A3DSimplifySurfaceWithAnalytics(A3DSurfBase const *pSrf, A3DDouble dTol, A3DUns32 uNbRecognizedType, A3DEEntityType const *pOptRecognizedType, A3DSurfBase **pAnalyticSurface, A3DEAnalyticType *peAnalyticType)
A3DStatus A3DSimplifySurfaceWithAnalytics(A3DSurfBase* pSrf, A3DDouble dTol, A3DUns32 uNbRecognizedType, A3DEEntityType* pOptRecognizedType, A3DSurfBase** pAnalyticSurface, A3DEAnalyticType* peAnalyticType)

Function to get surface as analytic according to a certain tolerance.

Use A3DEntityDelete() to delete the analytic surface after using it. Recognized surface type are Conic Surface Cylindrical Surface Plane Surface Spherical Surface Toric Surface If uNbRecognizedType and pOptRecognizedType are defined, A3DSimplifySurfaceWithAnalytics() recognizes only given types.

7.0

must be deleted by the user.

Return Values

A3D_SUCCESS:

A3D_INVALID_ENTITY_NULL:

A3D_INVALID_ENTITY_TYPE:

A3D_ERROR:

Parameters

pSrf: The input surface.

dTol: Tolerance.

uNbRecognizedType: Size of array pOptRecognizedType.

pOptRecognizedType: Optional type of surface we want to recognize.

pAnalyticSurface: The new analytic surface.

Returns

A3D_SUCCESS on success, or an error code on failure