surface:eval-normal
List of: Scheme Extensions
Subjects: Construction Geometry, Physical Properties
Contents: Kernel

Action: Gets the normal of a surface at the specified parameter values.

Filename: kern/kern_scm/surf_scm.cxx

Syntax: (surface:eval-normal surf u v)

Arg Types: surf surface

u real

v real

Returns: gvector


surf specifies a surface.


u specifies a u parameter value.


v specifies a v parameter value.

Example: ; surface:eval-normal

; 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 normal of the surface with the

; specified parameter values.

(surface:eval-normal surface1 1 1)

;; #[gvector 0 0 1]
PDF/KERN/15SCR.PDF
HTM/DATA/KERN/KERN/15SCR/0013.HTM