A3DSimplifyModelFileWithAnalytics

A3DStatus A3DSimplifyModelFileWithAnalytics(A3DAsmModelFile *p, A3DDouble dTol, A3DUns32 uNbRecognizedType, A3DEEntityType const *pOptRecognizedType)
A3DStatus A3DSimplifyModelFileWithAnalytics(A3DAsmModelFile* p, A3DDouble dTol, A3DUns32 uNbRecognizedType, A3DEEntityType* pOptRecognizedType)

Function to traverse the entire modelfile and simplify all curves and surfaces to analytics if possible, according to a certain tolerance.

Recognized surface types are:Conic Surface, Cylindrical Surface, Plane Surface, Spherical Surface, Toric SurfaceRecognized curve types are:Linear Curve, Circular CurveIf uNbRecognizedType and pOptRecognizedType are defined, A3DSimplifyModelFileWithAnalytics()recognizes only the given types.

Parameters

p: The input modelfile.

dTol: The tolerance (in millimeters).

uNbRecognizedType: Size of array pOptRecognizedType.

pOptRecognizedType: Optional type of surface we want to recognize.

Returns

A3D_SUCCESSon success, or an error code on failure