Synopsis

PDX_MSGT gdx_ModelStitchFaces(long option, int gdx_model)

Purpose

Stitch independant faces into solid.

Description

This function attempts to stitch all the independent faces of a GDX model into a solid. The program assumes all the faces in the model are in one shell and each edge is only shared once. There is no guarantee all the face normals will be pointing out, but all face normals will be pointing in the same direction. There is no logic to detect an edge that shares part of another edge, all shared edges must have the same start, middle, and end points. The tolerance used for matching edges will increase up to a limit to resolve all unmatched edges. There is no attempt made to validate the data or fix up bad data, only curve ordering and direction will be improved.

Input

option

Options.

gdx_model

MDA model pointer to GDX model

Tolerances

      .fi

Return

      GDX_NOERR
      GDX_INVALIDMODEL
      Low level error return
      .fi