|
|
VRML Script Tutorial
Full list
VRML Interactive Tutorial
Introduction
VRML File Structure
Drawing: Shape node
Geometry Nodes:
Appearance
Let there be Light
Materials with Colored Lights
Hierarchical Node Structures
Inlining Files
Defining and Instancing Nodes
Defining Levels of Detail
Events in VRML
Interpolators
Let the Music Play
Bindable Nodes
Adding Realism to the world
Information about your world
Definition for Auxiliary Nodes
|
|
|
|
Cylinder Node
The Cylinder node lets you specify not only the height and radius but also
which parts you want to draw.
This node contains five fields: radius, height, side,
bottom, and top.
The radius and height fields define the geometrical
properties of the cylinder. The values for these fields must be greater
than 0.0.
The side, bottom, and top specify which parts
of the cylinder are to be drawn. These three fields take boolean values.
For instance if side is FALSE then only the bottom and top of the
cylinder are drawn. When drawing only parts of the shape note that only
one side is lit, the opposite side being black.
All fields are optional, the default values being applied if not specified.
Syntax:
|
Cylinder { |
radius 1.0
height 2.0
side TRUE
bottom TRUE
top TRUE
|
} |
|
The center of the cylinder is at (0,0,0) of the local coordinate system.
|