Difference between revisions of "Reference:Cone"

From POV-Wiki
Jump to navigation Jump to search
m (1 revision: Reference Migration Initial Load)
m (removed unneeded wiki heading)
Line 5: Line 5:
 
{{#indexentry:cone, open}}
 
{{#indexentry:cone, open}}
 
{{#indexentry:keyword, open}}
 
{{#indexentry:keyword, open}}
====Cone====
 
 
<p>The <code>cone</code> statement creates a finite length cone or a <em>
 
<p>The <code>cone</code> statement creates a finite length cone or a <em>
 
frustum</em> (a cone with the point cut off). The syntax is:</p>
 
frustum</em> (a cone with the point cut off). The syntax is:</p>

Revision as of 17:29, 21 July 2012

The cone statement creates a finite length cone or a frustum (a cone with the point cut off). The syntax is:

CONE:
  cone {
    <Base_Point>, Base_Radius, <Cap_Point>, Cap_Radius
    [ open ][OBJECT_MODIFIERS...]
    }
RefImgConegeom.gif

The geometry of a cone.

Where <Base_Point> and < Cap_Point> are vectors defining the x, y, z coordinates of the center of the cone's base and cap and Base_Radius and Cap_Radius are float values for the corresponding radii.

Normally the ends of a cone are closed by flat discs that are parallel to each other and perpendicular to the length of the cone. Adding the optional keyword open after Cap_Radius will remove the end caps and results in a tapered hollow tube like a megaphone or funnel.