Synopsis

PDX_MSGT picr_Body(long option, int model, MDA_PTR orig_db_ptr, int tag, int identifier, double precision, double angle_precision, MDA_COUNT n_regions, MDA_PTR *regions, int body_type, MDA_PTR *body_ptr)

Purpose

Create the PINT model Body entity.

Description

This function creates a PINT Body 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

precision

Intended precision of body (session precision)

angle_precision

Intended angle precision of body (session angle precision

n_regions

number of regions in the body

regions

list of MDA_PTRs to region entities

body_type

PINT_BODY_MINIMUM

The body consists of one vertex

PINT_BODY_WIRE

The body consists of edges

PINT_BODY_SHEET

The body consists of faces and edges

PINT_BODY_SOLID

The body consists of manifold solid

PINT_BODY_GENERAL

The body consists of generalized topology

Output

body_ptr

The PINT body pointer

Return

      Low level error return
      .fi