Cylinder
A
Cylinder
primitive causes a cylinder to be drawn, where:
NumSides <Value>
Parameter | <Value> |
---|---|
Range | >3 |
Default | 10 |
(R)eal #, (I)nteger? | I |
Description | Number of sides for the cylinder. |
Face1Radius <Value>
Parameter | <Value> |
---|---|
Range | >0.0 |
Default | 1.0 |
(R)eal #, (I)nteger? | R |
Description | Radius of one end of the cylinder in meters. |
Face1Normal <x> <y> <z>
Parameter | <Value> |
---|---|
Range | >0.0 |
Default | -1 0 0 |
(R)eal #, (I)nteger? | R |
Description | Normal direction of the cylinder based on X, Y, and Z coordinates. Magnitude of normal must be greater than 0.0. |
Face2Radius <Value>
Parameter | <Value> |
---|---|
Range | >0.0 |
Default | 1.0 |
(R)eal #, (I)nteger? | R |
Description | Radius of the second end of the cylinder in meters. |
Face2Normal <x> <y> <z>
Parameter | <Value> |
---|---|
Range | >0.0 |
Default | 1.0 0 0 |
(R)eal #, (I)nteger? | R |
Description | Normal direction of the cylinder based on X, Y, and Z coordinates. Magnitude of normal must be greater than 0.0. |
Length <Value>
Parameter | <Value> |
---|---|
Range | >0.0 |
Default | <0.0 1.0 |
(R)eal #, (I)nteger? | R |
Description | The longest extent of a component, measured from end to end in meters. |
The
Scud3.mdl
model contains a
NoseCone
component defined as a cylinder:
Component NoseCone
FaceColor gray20
Translate 6.48 0 0
CylinderNumSides 16EndCylinder
Face1Radius 1
Face1Normal 1 0 0
Face2Radius 0.01
Face2Normal 1 0 0
Length 3
EndComponent
The cylinder in the
NoseCone
example is shaped like a cone because the first radius is much larger than the second radius point, which is almost invisible. To define a cone using a cylinder, one radius should be defined using a value close to 0.0.