Facenormal

From GMLwiki

Jump to: navigation, search

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

Image:facenormal.png

[edit] Remarks

This is an expensive operation, because the normal is computed at every call!

[edit] See Also

Personal tools