Synopsis

PDX_MSGT igeo_Convert126ToCurve(long option, MDA_PTR db_ptr_126, EAM_STACK *stack, int model, double tolerance, MDA_PTR *db_ptr)

Purpose

Convert an IGES NURBS curve (126) to an IGES curve

Description

Converts an IGES NURBS curve to an IGES curve based on the form of the IGES NURBS curve, within the IGES Geometry subsystem. If the form of the IGES NURBS curve is 0 than the IGES NURBS curve data is tested to determine the form of the IGES NURBS curve. If the form can not be determined, then the IGES NURBS curve is created as is in the new model. By default, the IGES NURBS curve matrix is concatenated with any matrix on the attribute stack and applied to the data. If a conversion error occurs any data created during the conversion is deleted and no IGES curve entity is created. The IGES NURBS curve entity must be a valid IGES definition The conversions are exact to the precision of the input data and to machine precision.

Input

option

IGES_NOMATRIX

Do not apply entity matrix to data

db_ptr_126

The valid IGES NURBS curve entity database pointer

stack

The entity attribute stack

model

The model to create the IGES curve in

tolerance

The tolerance for closure check

Output

db_ptr

The IGES curve entity database pointer

Tolerances

      MODEL_SPACE_PNT_TOL
      ZERO_TOL
      TANGENT_TOL
      CURVATURE_TOL
      DERIVATIVE_TOL
      COLLINEAR_TOL
      .fi

Return

      IGEO_NOERR
      IGEO_CURVEISNOTNURBS
      Low level error return
      .fi