Synopsis
(macro) PDX_MSGT gdx_GetApproxCurveExtents(long option, MDA_PTR db_ptr, double toler, int num_pnts, PDX_BOOL update, double extents[2][3])
Purpose
Get the approximate extents of a GDX curve
Description
Performs linear approximation of the specified GDX curve and determines the minimum and maximum extents of the curve. If the GDX curve is the GDX_COMP_EDGE_CURVE, the extents of each of the subordinate model space curves is determined. For option equal GDX_TOLERANCE or GDX_NUM_OF_POINTS_PER_SEG the toler value must be set. For option equal anything except GDX_TOLERANCE num_pnts must be set. The GDX curve must be a valid GDX definition.
Input
option
GDX_TOLERANCE
Approximate the curve within a tolerance
GDX_NUM_OF_POINTS
Approximate the curve with a number of points
GDX_NUM_OF_POINTS_OR_LINEAR
Approximate the curve with a number of points unless linear
GDX_NUM_OF_POINTS_PER_SEG
Approximate the curve with a maximum number of pointer per segment
GDX_USE2DPARMS
For the GDX Composite Edge Curve, get the extents of the 2D parameter space curve
db_ptr
The GDX curve entity database pointer.
toler
The approximation tolerance
num_pnts
The approximation number of points
update
Flag to indicate the the extents should be updated .br PDX_TRUE = Update the extents. .br PDX_FALSE = Create new extents.
extents
The extents to update if update is PDX_TRUE.
Output
extents
The 3D minimum and maximum extents of the curve
Return
GDX_NOERR
GDX_NOMEMORY
Low level error return
.fi