# Synopsis

PDX_MSGT gcr_SplineSurf2(long option, MDA_PTR orig_db_ptr, int u_degree, int v_degree, MDA_COUNT num_of_u_segs, MDA_COUNT num_of_v_segs, double *****xyz_uv_coefs, double u_break_pnts[], double v_break_pnts[], int gdx_model, MDA_PTR *gdx_SS_ptr)

# Purpose

Create a GDX Spline Surface.

# Description

Given a set of 3D XYZ UV ABCD... coefficients for each segment, the number of U and V segments, the U and V break points, and the U and V degree of Spline surface, creates a GDX Spline surface.

Refer to gcr_SplineSurf for detailed description.

# Input

## option

### GCR_NOVALIDATE

No validation will occur on the input data.

## orig_db_ptr

The original entities orig_db_ptr as obtained from the mda_GetOrigDbptr call, or MDA_NULL_PTR

## u_degree

The U degree of the Spline surface

## v_degree

The V degree of the Spline surface

## num_of_u_segs

The number of U spline patches for the Spline surface

## num_of_v_segs

V patch V,U order coefficients (xyz_uv_coefs[num_of_u_segs][num_of_v_segs] [3][v_degree + 1][u_degree + 1])

## xyz_uv_coefs

The 3D XYZ UV ABCD... U, V order coefficient values as num_of_u_segs U columns of

## u_break_pnts

The num_u_of_segs + 1 U spline surface patch break point values, or NULL

## v_break_pnts

The num_v_of_segs + 1 V spline surface patch break point values, or NULL

## gdx_model

The GDX model for entity creation

# Output

## gdx_SS_ptr

Entity database pointer of the GDX Spline Surface

# Tolerances

          .fi

# Return

          GCR_NOERR
          GCR_INVALID_MODEL
          GCR_SPLINE_SURF_U_DEGREE
          GCR_SPLINE_SURF_V_DEGREE
          GCR_SPLINE_SURF_NUM_U_SEGS
          GCR_SPLINE_SURF_NUM_V_SEGS
          Low level error return
          .fi