home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inside Multimedia 1995 December
/
IMM1295.ISO
/
share
/
grafik
/
povhelp
/
cones.hlp
< prev
next >
Wrap
Text File
|
1994-07-04
|
1KB
|
20 lines
A finite length cone or a frustum (a cone with the point cut off) may be
defined by:
cone { <END1>, RADIUS1, <END2>, RADIUS2 }
where <END1> and <END2> are vectors defining the x,y,z coordinates of the
center of each end of the cone and RADIUS1 and RADIUS2 are float values for
the radius of those ends. For example:
cone { <0, 0, 0>, 2 <0, 3, 0>, 0}
is a cone 3 units tall pointing up the y axis from the origin to y=3. The
base has a radius of 2. The other end has a radius of 0 which means it
comes to a sharp point. If neither radius is zero then the results look
like a tapered cylinder or a cone with the point cut off.
Like a cylinder, normally the ends of a cone are closed by flat planes
which are parallel to each other and perpendicular to the length of the
cone. Adding the optional keyword 'open' after RADIUS2 will remove the end
caps and results in a tapered hollow tube like a megaphone or funnel.
Because they are finite they respond to automatic bounding. As with all
shapes, they can be translated, rotated and scaled.