A3DSimplifyCurveWithAnalyticsFromCoEdge

A3DStatus A3DSimplifyCurveWithAnalyticsFromCoEdge(const A3DTopoCoEdge *pCoEdge, A3DDouble dTol, A3DUns32 uNbRecognizedType, A3DEEntityType const *pOptRecognizedType, A3DCrvBase **pAnalyticCurve, A3DEAnalyticType *peAnalyticType)
A3DStatus A3DSimplifyCurveWithAnalyticsFromCoEdge(const A3DTopoCoEdge* pCoEdge, A3DDouble dTol, A3DUns32 uNbRecognizedType, A3DEEntityType* pOptRecognizedType, A3DCrvBase** pAnalyticCurve, A3DEAnalyticType* peAnalyticType)

Function to get curves as analytic (line or circle) according to a certain tolerance Try to use 3D curves from Edges if exist, otherwise use UV Curves on CoEdge.

Use A3DEntityDelete() to delete the analytic curve after using it. Recognize curve type are: Linear Curve Circular Curve If uNbRecognizedType and pOptRecognizedType are defined, A3DSimplifyCurveWithAnalytics() recognizes only given types.

7.0

must be deleted by the user.

Return Values

A3D_SUCCESS: if an analytic has been created

A3D_ERROR:

Parameters

pCoEdge: The input coEdge.

dTol: The tolerance.

uNbRecognizedType: Size of array pOptRecognizedType.

pOptRecognizedType: Optional type of curve we want to recognize.

pAnalyticCurve: The new analytic curve.

Returns

A3D_SUCCESS on success, or an error code on failure