Synopsis

PDX_MSGT igeo_ExtractSubCurveFromCurve(long option, MDA_PTR db_ptr_curve, double t_start, double t_end, int model, double tolerance, MDA_PTR *db_ptr_sub_curve)

Purpose

Extract a sub_curve from an IGES curve.

Description

Given a valid IGES curve and parameter values within the domain of the curve (0.0 <= t_start < t_end <= 1.0 normalized), returns the portion of the IGES curve with in the specified parametric domain.

The IGES curve entity must be a valid IGES definition.

The conversion is exact to the precision of the input data and to machine precision.

Input

option

IGES_NOMATRIX

Do not apply the entity matrix to the data

IGEO_UNNORM

Unnormalize the parameter values for extracting the sub curve. By default the parameter values are assumed to be within the curve bounds

db_ptr_curve

The IGES curve entity database pointer

t_start

The curve parameter value to start extracting the sub_curve

t_end

The curve parameter value to end extracting the sub_curve

model

The model to create the IGES extracted sub_curve in

tolerance

The tolerance for closure test.

Output

db_ptr_sub_curve

The extract IGES sub_curve entity database pointer

Return

      IGEO_NOERR
      IGEO_INVALIDPARMVALUE
      Low level error return
      .fi