Synopsis
PDX_MSGT gdx_InitApproxParams(long option, GDX_APPROX_PARAMS *approx_params)
Purpose
Initializes the GDX linear approximation parameters
Description
Initializes the GDX linear approximation parameters to default values. The GDX linear approximation parameters can then be used as is for GDX linear approximation or modified by the application. The parameters in the approx_params data structure are:
The linear approximation method. The available methods are:
.nf GDX_TOLERANCE (default) Approximate to within a tolerance Note: The tolerance must be > 0.0 when this method is set
GDX_NUM_OF_POINTS Approximate by number of points
GDX_NUM_OF_POINTS_OR_LINEAR Approximate by number of points unless entity is linear
GDX_NUM_OF_POINTS_PER_SEG Approximate a curve/surface segment with no more than the number of points and to within a tolerance .fi
The linear approximation tolerance for the tolerance ( GDX_TOLERANCE ) method.
.nf Default = 0.01 .fi
The number of points per segment for the points per segment ( GDX_NUM_OF_POINTS_PER_SEG ) method.
.nf Default = 10 .fi
The number of points per curve and/or iso-parametric curve for the number of points ( GDX_NUM_OF_POINTS or GDX_NUM_OF_POINTS_OR_LINEAR ) method.
.nf Default = 100 .fi
The option to generate facets for surface linear approxiation.
.nf Default = PDX_FALSE .fi
The number of surface mesh curves in the U parametric direction.
.nf Default = 5 .fi
The number of surface mesh curves in the V parametric direction.
.nf Default = 5 .fi
The option to generate surface UV parameter space data.
.nf Default = PDX_FALSE .fi
The option to issue linear approximation warnings.
.nf Default = PDX_TRUE .fi
Input
option
(Option)Not used
approx_params
The approximation parameters data structure.
Output
approx_params
The initialized approximation parameters
Return
GDX_NOERR
Low level error return
.fi