Open topic with navigation
<vizshape>.addCylinder
Adds a cylinder
<vizshape>.addCylinder( |
|
height = 1.0 |
radius = 0.5 |
topRadius = None |
bottomRadius = None |
axis = vizshape.AXIS_Y |
slices = 20 |
bottom = True |
top = True |
) |
|
height = 1.0
Cylinder height
radius = 0.5
Cylinder radius
topRadius = None
A frustum of a cone can be created by passing in a value that is different then the radius value. A value of 0 will draw a cone.
bottomRadius = None
A frustum of a cone can be created by passing in a value that is different then the radius value. A value of 0 will draw a cone.
axis = vizshape.AXIS_Y
Can be a positive or negative value of one of the following:
vizshape.AXIS_X | Shape will point toward the X axis when added |
vizshape.AXIS_Y | Shape will point toward the Y axis when added |
vizshape.AXIS_Z | Shape will point toward the Z axis when added |
slices = 20
The number of circles used to build the frame of the cylinder in the vertical direction.
bottom = True
Determines if the bottom of the cylinder is drawn.
top = True
Determines if the top of the cylinder is drawn.
Remarks
This command will add a cylinder.
Return Value
<node3D> object
Example
import vizshape
cylinder = vizshape.addCylinder()