Synopsis

PDX_MSGT gcr_RectMesh(long option, MDA_PTR orig_db_ptr, MDA_COUNT num_u_points, MDA_COUNT num_v_points, double ***mesh_points, double ***mesh_parms, int gdx_model, MDA_PTR *gdx_rm_ptr)

Purpose

Create a GDX Rectangular Mesh.

Description

A GDX Rectangular Mesh entity is created for the given number of model space points. 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

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.

num_u_points

Number of model space points in u direction.

num_v_points

Number of model space points in v direction.

mesh_points

MDA memory array containing model space points [u][v][3]. Always consumed by this function even on error.

mesh_parms

MDA memory array containing parameter space points [u][v][2] or NULL. Always consumed by this function even on error.

gdx_model

The GDX model for entity creation

Output

gdx_rm_ptr

Entity database pointer of the GDX Rectangular Mesh.

Tolerances

      .fi

Return

      GCR_NOERR
      GCR_INVALID_MODEL
      Low level error return
      .fi