Synopsis

PDX_MSGT gcr_Edge(long option, MDA_PTR orig_db_ptr, MDA_PTR start_vertex_ptr, MDA_PTR end_vertex_ptr, MDA_PTR edge_curve_ptr, PDX_BOOL sense, int gdx_model, MDA_PTR *gdx_edge_ptr)

Purpose

Create a GDX Edge.

Description

Given the a start vertex, end vertex, edge curve and sense create a GDX Edge. The sense flag indicates the sense of the curve, 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

start_vertex_ptr

The database pointer of a GDX Vertex entity corresponding to the starting vertex

end_vertex_ptr

The database pointer of a GDX Vertex entity corresponding to the ending vertex

edge_curve_ptr

Optionally the database pointer of a GDX Edge Curve or MDA_NULL_PTR

sense

Sense of the edge curve corresponding to edge_curve_ptr

gdx_model

The GDX model for entity creation

Output

gdx_edge_ptr

Entity database pointer of the GDX Edge

Tolerances

      .fi

Return

      GCR_NOERR
      GCR_INVALID_MODEL
      Low level error return
      .fi