# Synopsis

PDX_MSGT gdx_MeshBodyToShellOrSolid(long option, int gdxModel, MDA_PTR gdxMeshBodyPtr, MDA_PTR *gdxShellOrSolidPtr)

# Purpose

Convert GDX_MESH_BODY to GDX_SHELL or GDX_SOLID

# Description

Each GDX_MESH_FACET will be converted to a GDX_FACE and the resulting faces will be used to create a GDX_SHELL or GDX_SOLID (if closed).

# Input

## option

### GDX_ALWAYS_CREATE_SOLID

Always create GDX_SOLID if shell is open

## gdxModel

GDX model to create new GDX_SOLID in

## gdxMeshBodyPtr

GDX_MESH_BODY entity to convert

# Output

## gdxShellOrSolidPtr

GDX_SHELL or GDX_SOLID entity created

# Return

GDX_NOERR or error