Synopsis
PDX_MSGT igeo_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 an IGES curve
Description
Performs linear approximation of the specified IGES curve and determines the minimum and maximum extents of the curve. For option equal IGEO_TOLERANCE or IGEO_NUM_OF_POINTS_PER_SEG the toler value must be set. For option equal anything except IGEO_TOLERANCE num_pnts must be set. The IGES curve must be a valid IGES definition.
Input
option
IGEO_TOLERANCE
Approximate the curve within a tolerance
IGEO_NUM_OF_POINTS
Approximate the curve with a number of points
IGEO_NUM_OF_POINTS_OR_LINEAR
Approximate the curve with a number of points unless linear
IGEO_NUM_OF_POINTS_PER_SEG
Approximate the curve with a maximum number of pointer per segment
db_ptr
The IGES 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
IGEO_NOERR
IGEO_NOMEMORY
Low level error return
.fi