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,:ref:Cylindrical Surface <group__a3d__srfcylinder>,:ref:Plane Surface <group__a3d__srfplane>,:ref:Spherical Surface <group__a3d__srfsphere>,:ref:Toric Surface <group__a3d__srftorus>Recognized curve types are:Linear Curve,:ref:Circular Curve <group__a3d__crvcircle>If uNbRecognizedType and pOptRecognizedType are defined,:c:func:~A3DSimplifyModelFileWithAnalyticsrecognizes 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