PARTS
SIDES The conical part
BOTTOM The bottom circular face
ALL All parts
FILE FORMAT/DEFAULTS
Cone {
parts ALL # SFBitMask
bottomRadius 1 # SFFloat
height 2 # SFFloat
}
This node is transformed by the parent's current cumulative transformation. It is also drawn with the parent's current texture and material.
Unless the current material binding is PER_PART or PER_PART_INDEXED, the first current material is used for the entire cone. Under these circumstances, the first current material is used for the sides of the cone, and the second is used for the bottom.
If a texture is applied to a cone, the texture is applied differently to the sides and bottom. For the sides, the texture will wraps counterclockwise starting at the back of the cone. This counterclockwise direction is determined by looking at the cone from above. The texture will have a vertical seam along the back of the cone and will intersect the yz-plane. The base of the cone is covered by a circle that is cut out of the texture square and applied to the base. When the top of the cone is rotated toward the negative z axis, the texture will appear right side up.
Example Use
The following code fragment is from Cone.wrl.
Cone { parts ALL
bottomRadius 1
height 3}