Synopsis

PDX_MSGT picr_Edge(long option, int model, MDA_PTR orig_db_ptr, int tag, int identifier, MDA_PTR start_vertex, MDA_PTR end_vertex, MDA_PTR curve, int curve_orient, MDA_COUNT n_fins, MDA_PTR *fins, int vertex_type, int enclosure_type, int fin_type, double precision, MDA_PTR *edge_ptr)

Purpose

Create the PINT model Edge entity.

Description

This function creates a PINT Edge entity for the given input data. 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

PICR_VALIDATE

Validate the entity fields

PICR_NOVALIDATE

Do not validate the entity fields

model

PINT model for entity creation

identifier

Parasolid's identifier

orig_db_ptr

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

tag

Parasolid tag for this entity

start_vertex

MDA_PTR to start vertex entity

end_vertex

MDA_PTR to start vertex entity

curve

MDA_PTR to curve entity

curve_orient

orientation of the curve

n_fins

0

, May be zero, but need to have memory for fins (2).

fins

list of MDA_PTRs to region entities

vertex_type

PINT_EDGE_OPEN

The edge has two distinct vertices

PINT_EDGE_CLOSED

The start and end vertex are coincedent

PINT_EDGE_RING

The edge has no vertices

enclosure_type

PINT_EDGE_INSIDE

The edge is surrounded by solid regions

PINT_EDGE_OUTSIDE

The edge is surrounded by void regions

PINT_EDGE_ON

The edge is adjaicent to both solid and void regions

fin_type

PINT_EDGE_WIREFRAME

The edge is a wireframe (no fins)

PINT_EDGE_LAMINAR

The edge has one fin

PINT_EDGE_NORMAL

The edge has two fins, with opposite senses

PINT_EDGE_GENERAL

The edge has some other combination of fins

precision

Precision of edge

Output

edge_ptr

The PINT model pointer

Return

      Low level error return
      .fi