Facenormal
From GMLwiki
e:E → nrml:P3
Contents |
[edit] Description
returns the face normal of e’s face.
[edit] Example
The following example creates a circle in the origin with the direction (0,-1,0). The facenormal function is used to calculate the circles face normal. The result is of course (0,-1,0) and is displayed by the blue dot.
(0,0,0) (0,-1,0) 0.5 8 circle 1 poly2doubleface dup facenormal
[edit] Remarks
This is an expensive operation, because the normal is computed at every call!

