Synopsis

PDX_MSGT gdx_PolyShellToShellOrSolid(long option, int gdxModel, MDA_PTR gdxPolyShellPtr, MDA_PTR *gdxShellOrSolidPtr)

Purpose

Convert GDX_POLY_SHELL to GDX_SHELL or GDX_SOLID

Description

The specified GDX_POLY_SHELL entity will be converted to a GDX_SHELL or GDX_SOLID (if closed) entity in the specified model. Each polygon in the GDX_POLY_SHELL will become a GDX_FACE with a single GDX_LOOP on a GDX_PLANE defined by the polygon points. Each GDX_LOOP will contain GDX_EDGE entities made of GDX_POLYLINE entities and GDX_VERTEX entities. Each GDX_POLYLINE will be created between the sequence of polygon points which will also be used to create the GDX_VERTEX entities. Both the GDX_EDGE entities and the GDX_VERTEX entities will be tracked and reused if possible. All of the created GDX_FACE entities will be put into the GDX_SHELL entity. If all the edges in the shell are used twice, a GDX_SOLID entity will be created from the GDX_SHELL entity.

Input

option

GDX_ALWAYS_CREATE_SOLID

Always create GDX_SOLID if shell is open

gdxModel

GDX model to create new GDX_SHELL entity in

gdxPolyShellPtr

GDX_POLY_SHELL entity to convert

Output

gdxShellOrSolidPtr

GDX_SHELL or GDX_SOLID entity created

Return

GDX_NOERR or error