Synopsis
PDX_MSGT gdx_CurveToPolyline(long option, MDA_PTR gdx_db_ptr, double tol, long num_pnts, int model, MDA_PTR *polyline_ptr)
Purpose
Approximate a curve as a polyline
Description
Approximate a curve as a polyline.
Input
option
GDX_APPROX_BY_TOL
Approximate the curve by the given tolerance
GDX_APPROX_BY_NUM_PNTS
Approximate the curve by the given number of points
GDX_APPROX_BY_NUM_PNTS_PER_SEG
Approximate the curve by no more than the given number of points or to within a tolerance for each segment
GDX_APPROX_BY_NUM_PNTS_OR_LINEAR
Approximate the curve by the given number of points unless it is linear
GDX_APPROX_BY_TOL_AND_MAX_LENGTH
Approximate the curve by the given tolerance and the length of each segment should not exceed the 10 times of the given tolerance
gdx_db_ptr
Database pointer of GDX entity
tol
The approximation tolerance (may not be used for some options)
num_pnts
The number of points (may not be used for some options) If 0 is passed, default value will be used.
model
The model to create the approximation entity in
Output
polyline_ptr
The GDX_POLYLINE database pointer
Return
GDX_NOERR
Low level error return
.fi