Adds a torus
| <vizshape>.addTorus( | |
| radius = 1.0 | |
| tubeRadius = 0.2 | |
| sides = 40 | |
| slices = 40 | |
| axis = vizshape.AXIS_Y |
)
radius = 1.0
Radius of the inner empty space
tubeRadius = 0.2
Tube radius
sides = 40
The number of cirles used to build the frame of the torus in the horizontal direction.
slices = 40
The number of cirles used to build the frame of the torus in the vertical direction.
axis = vizshape.AXIS_Y
Can be a positive or negative value of one of the following:
|
value |
description |
|
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 |
This command adds a torus.
<node3D> object