Synopsis

PDX_MSGT gdx_SolidImproveParmLoopCont(long option, MDA_PTR gdx_db_ptr, int *num_open_face_ptrs, MDA_PTR **open_face_ptrs)

Purpose

Improve continuity of all loops in parm space for a solid

Description

This function tries to close all loops for a solid. If all faces were closed, num_open_face_ptrs would be 0; otherwise, the unclosed faces would be returned. 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 parm space and all backpointer information will be set up accordingly.

See gdx_FaceImproveParmLoopCont for further information.

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 parm space is closed or not. The default is to replace it no matter what it is.

gdx_db_ptr

The database pointer for the GDX solid entity

Output

gdx_db_ptr

An updated GDX solid with new loop data

num_open_face_ptrs

Number of unclosed faces in the solid

open_face_ptrs

Unclosed faces in the solid. The caller must free it if it is not NULL.

Return

      GDX_NOERR
      GDX_INVALIDMODEL
      Low level error return
      .fi