Synopsis

PDX_MSGT dxcr_Spline(long option, MDA_PTR orig_db_ptr, int degree, int sflag, int num_knots, int num_cpts, double *knots, double *cpts, double *weights, int dxf_model, MDA_PTR *dxf_db_ptr)

Purpose

Creates a DXF spline.

Description

Creates a DXF spline entity in the specified model based on data provided. The data provided must result in a valid definition.

The orig_db_ptr argument should contain the database pointer of the entity that the new entity was created from (usually this should be obtained by the calling routine via mda_GetOrigDbptr) or MDA_NULL_PTR. See the mda_intro man page for more information about predecessor entities.

Input

option

Options (not used)

orig_db_ptr

The database pointer of the originating entity

degree

The degree of the curve

sflag

Flag indicating closure, periodicity, rationality, planarity

num_knots

Number of knots

num_cpts

Number of control points

knots

Knot vector

cpts

Control points[x0,y0,z0,w0,x1,...w(n-1)]

weights

Weights[0,1,...(n-1)]

dxf_model

The model for creating the DXF entity or entities

Output

dxf_db_ptr

The database pointer of the resulting DXF entity

Return

      DXCR_NOERR
      Low level error return
      .fi