This example demonstrates the use of the SPARF function to return the U and V parameters on a surface at a position closest to PT1.
ENTITY/SURF1,PT1
.
.
.
SPARF/SURF1,PT1,UPARAM,VPARAM
The function above is equivalent to the following where the X, Y and Z values are used instead of the object PT1.
SPARF/SURF1,X,Y,Z,UPARAM,VPARAM
The variables UPARAM and VPARAM, can now be used as input to the surface position function, SPOSF, or the surface normal function, SNORF.