# Synopsis

PDX_MSGT gdb_PolyShellCheckTopology(long option, MDA_PTR gdx_ps_ptr, PDX_BOOL *passed)

# Purpose

Check topological features of a GDX PolyShell Entity

# Description

This function checks the topological features specified by the option. If more than one feature is to be checked then the options can be ORed together. In case of more than one option the passeds will be set to PDX_TRUE if all the checks succeed. If any one the checks fail, then passed is set to PDX_FALSE.

# Input

## option

Specifies what to check for GDB_PS_PRINT Prints all the information evaluated and used for all the checks GDX_PS_MANIFOLD Only for solids. Checks if the solid is manifold. Returns Success if there are no non-manifold segments GDX_PS_INTERNAL_MANIFOLD Checks if all the internal segments (shared by two polydgons) are correctly oriented Returns Success if there are no overuse or codirected segments. GDX_PS_OVERUSE_SEG Checks for Polygon segments used by more than two polygons. Returns success if no overused segments are found GDX_PS_STITCHABLE Only for Solids. Checks is a solid that not manifold can be made manifold without modifying geometry. Returns success if solid is stichable GDX_PS_DEGEN_SEG Checks for degenerate segments in polygons. Returns success if no degen segments are found. GDX_PS_ORIENTATION Checks if all the external segments (used by 1-polygon only) are correctly oriented Returns Success if all external segments are correctly oriented.

## gdx_ps_ptr

GDX PolyShell Entity database pointer

# Output

## passed

PDX_TRUE All the specified checks passed PDX_FALSE One the checks failed

# Return

          GDX_NOERR
          Low level error return
          .fi
       Usage