Synopsis

PDX_MSGT gcr_Shell2(long option, MDA_PTR orig_db_ptr, MDA_COUNT num_of_faces, PDX_BOOL senses[], MDA_PTR face_ptrs[], int gdx_model, MDA_PTR *gdx_shell_ptr)

Purpose

Create a GDX Shell.

Description

Given the number of faces, the sense for each face, and the pointers to the faces create a GDX Shell. The sense flags indicates the senses of the faces with respect to the shell, PDX_TRUE means the sense agrees.

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_of_faces

Number of faces that make up the Shell, must be > 0.

senses

The correspond sense of the face with respect to the shell.

face_ptrs

The faces that make up the shell

gdx_model

The GDX model for entity creation

Output

gdx_shell_ptr

Entity database pointer of the GDX Shell

Tolerances

      .fi

Return

      GCR_NOERR
      GCR_INVALID_MODEL
      Low level error return
      .fi