Return to index
n - set the surface normal direction for the current vertex
dx dy dz
Set the 3-dimensional surface normal for the current vertex to the
normalized vector along
If this vector is zero, then the surface normal is effectively
The actual surface normal orientation of the vertex will be determined
by the transformation in effect at the time the vertex is applied to a
geometric surface entity.
The current transform when the normal is set is irrelevant.
The default vertex normal is the zero vector (i.e. no normal).
# Make a chain of 10 interlocking doughnuts
v tcent =
p 0 0 0
n 0 1 0
xf -a 10 -rx 90 -t .2 0 0
torus tcent .1 .2