Vizard 8 » Command Index » Vizard objects » node3d » <node3d:onthefly>.getNormal
8.1

<node3d:onthefly>.getNormal

Get the normal vector of the specified vertex

<node3d:onthefly>.getNormal(  
index  
mode = viz.REL_LOCAL  
)  
index
0-based index of the vertex. Negative index can also be used to reference from end of vertex list.
mode = viz.REL_LOCAL
One of the following mode:

Normal modes

viz.REL_LOCAL
viz.ABS_LOCAL

Return the raw normal vector.

viz.REL_PARENT
viz.ABS_PARENT

Return the normal vector transformed by the nodes current transform matrix.

viz.REL_GLOBAL
viz.ABS_GLOBAL

Return the normal vector in the global coordinate system.

Remarks

This command will return the normal vector of the vertex at the specified index.

Return Value

Normal vector - [x,y,z]