Synopsis

PDX_MSGT gdx_ModelTrimLargeSurfaces(long option, int gdxModel, double factor, int *ntrims)

Purpose

Trim large surfaces to face bounds.

Description

This function will compare the size of each surface with the size of the model and trim the surface if it is larger than a factor bigger than the model. The vertices of the model will be used to get a rough estimate of the size of the model. The surface size will be determined by evaluating a 10x10 array of points. The actual parameter curves will be used to get the real face bounds before trimming the surface. The parameter values will be padded by 10% so the trimming curves are not too close to the surface boundaries.

Input

option

GDX_KEEP_OFFSET

Do not trim offset surface

GDX_KEEP_PLANE

Do not trim planar surface

GDX_KEEP_CYLINDER

Do not trim cylinder surface

GDX_KEEP_CONE

Do not trim conical surface

GDX_KEEP_EXT_SURF

Do not trim extruded surface

GDX_KEEP_REV_SURF

Do not trim revolved surface

GDX_KEEP_RULED_SURF

Do not trim ruled surface

GDX_KEEP_SPHERE

Do not trim spherical surface

GDX_KEEP_TORUS

Do not trim toroidal surface

gdxModel

The gdx model to traverse

factor

Factor specifying how much bigger a surface needs to be before it is trimmed

Output

ntrims

Number of surfaces trimmed back

Return

      GDX_NOERR
      .fi