Synopsis

PDX_MSGT gdx_SetLinearApproxMethod(int method)

Purpose

Set the current GDX linear approximation method.

Description

Set the linear approximation method for the current GDX linear approximation workspace. By default the method is set to GDX_TOLERANCE and the tolerance values is set to 0.01. The GDX_TOLERANCE method approximates the GDX entity to be within a tolerance of the GDX entity approximated (see gdx_SetLinearApproxTol). The GDX_NUM_OF_POINTS method approximates the GDX entity with the specified number of points per GDX curve and the specified number of points per boundary/iso-parametric lines for GDX surfaces. The GDX_NUM_OF_POINTS_OR_LINEAR method approximates the GDX entity with the number of points per GDX entity unless the entity is linear in which case the linear set of points is generated. The GDX_NUM_OF_POINTS_PER_SEG method approximates the GDX entity with at most the specified number of points per curve/surface segment dependent on the current linear approximation tolerance set and the linearity of the segment.

Input

method

GDX_TOLERANCE

Approximate to within a tolerance .br Note: The tolerance must be > 0.0 when this method is set

GDX_NUM_OF_POINTS

Approximate by number of points

GDX_NUM_OF_POINTS_OR_LINEAR

Approximate by number of points unless entity is linear

GDX_NUM_OF_POINTS_PER_SEG

Approximate a curve/surface segment with no more than the number of points and to within a tolerance

Return

      GDX_NOERR
      GDX_NOAPPROXDATA
      GDX_INVALIDTOLERANCE
      GDX_INVALIDAPPROXMETHOD
      .fi