# Synopsis

PDX_MSGT gdx_FaceImproveModelLoopCont(long option, MDA_PTR *gdx_face_ptr, PDX_BOOL *closed)

# Purpose

Improve loop continuity by senses and order in model space for a face

# Description

This function tries to close all loops by using senses and order in model space for a face. If all loops were able to be closed, the flag closed would be set as TRUE; otherwise, the flag closed would be set as FALSE. The face may or may not be replaced based on the option chosen. See the desciption about options for more details. Once a face is replaced, each loop of it will be continuous between two consecutive gaps (if any) in model space and all backpointer information will be set up accordingly.

This function does not guarantee the loops are in right direction even if they are closed.

# Input

## option

### GDX_REPLACE_CLOSED_FACE

Replace the face only when it is closed and keep the unclosed face unchanged. The default is to replace it no matter what it is.

### GDX_NO_REPLACE

Don't replace the face. This option is used when you only need know if the loop in model space is closed or not. The default is to replace it no matter what it is.

## gdx_face_ptr

The valid GDX Face database pointer

# Output

## gdx_face_ptr

The valid GDX Face database pointer

## closed

Flag indicating if all loops are closed in model space for the face

# Return

          GDX_NOERR
          Low level error return
          .fi