Return to index

NAME

n - set the surface normal direction for the current vertex

SYNOPSIS

n dx dy dz

DESCRIPTION

Set the 3-dimensional surface normal for the current vertex to the normalized vector along (dx,dy,dz). If this vector is zero, then the surface normal is effectively unset. 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).

EXAMPLE

# 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
xf

SEE ALSO

f, p, prism, ring, torus, v