Always Making A Point
Node
Cone • Attributes
Description
Three colored cones that all differ in height and base.
VRIGNETTE Notes
One interesting thing you can do with Cone: if you specify a height of 0.0, you'll get a perfectly flat disk similar to Disk2D.
Example
Rotate the vrignette to view the geometry.
Code
<x3d> <scene> <worldInfo title="Cone Example"> </worldInfo> <navigationInfo headlight="true"> </navigationInfo> <viewpoint position="0.0 0.0 28.0" centerOfRotation="0.0 0.0 0.0"> </viewpoint> <transform rotation="1 1 1 -0.785"> <shape> <appearance> <material diffuseColor="0.0 0.376 0.749" specularColor="0.25 0.25 0.25" shininess="0.15"> </material> </appearance> <cone height="7.0" bottom="true" bottomRadius="2.5" side="true" solid="false"> </cone> </shape> </transform> <transform translation="-7.0 1.0 -3.0" rotation="1 1 1 -0.785"> <shape> <appearance> <material diffuseColor="0.749 0.0 0.749" specularColor="0.25 0.25 0.25" shininess="0.15"> </material> </appearance> <cone height="5.0" bottom="true" bottomRadius="2.0" side="true" solid="false"> </cone> </shape> </transform> <transform translation="6.0 -1.0 3.0" rotation="1 1 1 -0.785"> <shape> <appearance> <material diffuseColor="0.0 0.749 0.0" specularColor="0.25 0.25 0.25" shininess="0.15"> </material> </appearance> <cone height="4.0" bottom="true" bottomRadius="1.5" side="true" solid="false"> </cone> </shape> </transform> <background skyColor="0.20 0.20 0.20" groundColor="0.20 0.20 0.20"> </background> </scene> </x3d>