Synopsis

PDX_MSGT igeo_ProjectPointSurface(long option, MDA_PTR db_ptr_srf, MTH_3DPNT point, double u0, double v0, int max_iters, MTH_3DPNT proj_point, double *u1, double *v1)

Purpose

Project a point to an IGES surface

Description

Projects a model space point to an IGES surface. If the u0 and/or v0 values are negative, then a global search is made to try to find an initial starting parameter values, otherwise the u0 and v0 values are assumed to be initial starting parameter values to use for projection. The max_iters value is the maximium iterations made if the projection does not converge to PNT_PROJ_TOL. The surface must be a valid IGES surface definition.

Input

option

IGEO_NOSETERROR

Do not set the IGEO_NOCONVERGE error

db_ptr_srf

The database pointer for the IGES surface

point

The model space point to project

u0

The initial surface U parameter value(0.0 to 1.0) or < 0.0 if the value should not be used

v0

The initial surface V parameter value(0.0 to 1.0) or < 0.0 if the value should not be used

max_iters

The maximium iterations for convergence

Output

proj_point

The model space point on the surface

u1

The U parameter value of the point on the surface

v1

The V parameter value of the point on the surface

Tolerances

      PNT_PROJ_TOL
      MODEL_SPACE_PNT_TOL
      ANGLE_TOL
      ZERO_TOL
      .fi

Return

      IGEO_NOERR
      IGEO_NOCONVERGE
      Low level error return
      .fi