Synopsis

PDX_MSGT ppiw_ModelToParasolid(long option, int pint_model, int *num_of_ents, PK_ENTITY_t **para_ents)

Purpose

Given a PINT model, Create Parasolid entites.

Description

Create Parasolid entites from the given PINT model.

The PINT model must have been initialized by calling pint_InitModelInfo before allocating the mode. Parasolid session should have been started using pint_StartParasolidSession call.

Internally, Parasolids uses local precisions for edges and verticies. Often the data being imported via data exchange will not have the same tolerance as the Parasolid session tolerance. To import data that has larger tolerances, the local precisions must be set in parasolids. This can be done by either calculating the local precisions in the PINT model (PPIW_SET_LOCAL_PRECISION) or by mending the data when it is in Parasolids (PPIW_MENDEN_REPLACE_ALL_GEOM or PPIW_MENDEN_REPLACE_NEEDED_GEOM). Also see pgdx_GDXSolidToPINT.

Parasolids requires vertex loops. At the moment, the conversion of GDX to Parasolid does not create vertex loops. To get vertex loops in the resulting parasolids file, use either the PPIW_MENDEN_REPLACE_ALL_GEOM option or the PPIW_MENDEN_REPLACE_NEEDED_GEOM option.

Calling program should free up @para_ents memory using PK_MEMORY_free.

Input

option

PPIW_JOURNAL

Turn on parasolid journal file creation. This will create a journal file of parasolid function calls during the PPIW write process. File will be named <file>.jnl_txt

PPIW_BODY_CHECK_ALWAYS

Invoke Body checker always

PPIW_BODY_NO_CHECK

Don't invoke Body checker

PPIW_SET_LOCAL_PRECISION

Sets local precision to Edges and Vertices The PGDX_CAL_LOCAL_PRECISION option must be used during conversion of GDX to PINT.

PPIW_MENDEN_REPLACE_ALL_GEOM

Mend parasolid body by replacing all Geometry. Will set all local precisions.

PPIW_MENDEN_REPLACE_NEEDED_GEOM

Mend parasolid body by replacing needed geometry. Will set local precisions as needed.

pint_model

MDA PINT model

Output

num_of_ents

Number of Parasolid Entities

para_ents

List of Parasolid Entity MDA Pointers

Return

      PPIW_NOERR
      .fi