Action:
|
Gets the position on a surface at the specified parameter values.
|
|
Filename:
|
kern/kern_scm/surf_scm.cxx
|
|
Syntax:
|
(surface:eval-pos surf u v)
|
|
Arg Types:
|
surf
|
surface
|
|
u
|
real
|
|
v
|
real
|
|
Returns:
|
position
|
|
|
surf specifies a surface.
|
|
|
u specifies a
u parameter value.
|
|
|
v specifies a
v parameter value.
|
|
Example:
|
; surface:eval-pos
|
|
; Create a solid block.
|
|
(define block1
|
|
|
(solid:block (position 0 0 0)
|
|
|
(position 40 40 40)))
|
|
;; block1
|
|
; Get a list of the faces of the solid block.
|
|
(define entities1
|
|
|
(entity:faces block1))
|
|
;; entities1
|
|
; Convert one face to a surface.
|
|
(define surface1 (surface:from-face
|
|
|
(car entities1)))
|
|
;; surface1
|
|
; Evaluate the position on the surface at the
|
|
; specified parameter values.
|
|
(surface:eval-pos surface1 1 1)
|
|
;; #[position 21 21 40]
|