# Synopsis

PDX_MSGT igeo_ApproxSetMethod(long method)

# Purpose

Set the approximation method

# Description

Sets the approximation method to be used to perform linear approximation. By default the method is set to IGEO_TOLERANCE and the tolerance values is set to 0.01. The IGEO_TOLERANCE method approximates the IGES entity to be within a tolerance of the IGES entity approximated. The IGEO_NUM_OF_POINTS method approximates the IGES entity with the specified number of points per IGES curve and the specified number of points per boundary/iso-parametric lines for surfaces. The IGEO_NUM_OF_POINTS_OR_LINEAR method approximates the IGES entity with the number of points per IGES entity unless the entity is linear in which case the linear set of points is generated. The IGEO_NUM_OF_POINTS_PER_SEG method approximates the IGES entity with at most the specified number of points per curve/surface segment dependent on the tolerance and the linearity of the segment.

# Input

## method

### IGEO_TOLERANCE

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

### IGEO_NUM_OF_POINTS

Approximate by number of points

### IGEO_NUM_OF_POINTS_OR_LINEAR

Approximate by number of points unless entity is linear

### IGEO_NUM_OF_POINTS_PER_SEG

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

# Return

          IGEO_NOERR
          IGEO_INVALIDAPPROXMETHOD
          IGEO_INVALIDTOLERANCE
          IGEO_NOAPPROXDATA
          .fi