<cylinder> ‐ A cylinder
This element defines a cylinder oriented along the z axis, with the base of the cylinder at z = 0 and the top at z = height, the float value of the height attribute.
The float value of the base_radius attribute is the radius of the cylinder at z = 0. The float value of the top_radius attribute is the radius of the cylinder at z = height. The integer value of the segments attribute is the number of steps that will be used to build the mesh of the cylinder when rendering it.
This element can have elements in its scope that define the material properties of the cylinder: color, material, materialRaytrace, shader, texture, or video.
The following elements can occur in cylinder: color, material, materialRaytrace, shader, texture, or video.
The example below defines a textured cylinder. Its top and base radii are 500.0 and its height is 2000.0.
<node id="node_landscape_cylinder"> <cylinder id="cylinder_#1" base_radius="500.0" top_radius="500.0" height="2000.0"> <texture encoding="jpeg" xlink:href="deepsea.jpg" id="sky-sea" /> </cylinder> </node>