Return to index
NAME
cyl - create an open-ended, truncated right cylinder
SYNOPSIS
cyl
v1 rad v2
DESCRIPTION
Create a truncated right cylinder of radius
rad
using the current material, starting at the named vertex
v1
and continuing to
v2.
The ends will be open, but may be capped using the
ring
entity if desired.
The surface normal will usually be directed outward, but may be
directed inward by giving a negative value for
rad.
A zero radius is illegal, and
v1
cannot equal
v2.
EXAMPLE
# A stylus with one rounded and one pointed end
o stylus
v vtip0 =
p 0 0 0
v vtip1 =
p 0 0 .005
v vend =
p 0 0 .05
cyl vtip1 .0015 vend
sph vend .0015
cone vtip0 0 vtip1 .0015
o
SEE ALSO
cone,
f,
m,
prism,
ring,
sph,
torus,
v