Vizard 8 » Command Index » Vizard modules » vizshape » <vizshape>.addSphere
8.1

<vizshape>.addSphere

Adds a sphere

<vizshape>.addSphere(  
radius = 1.0  
slices = 20  
stacks = 20  
axis = vizshape.AXIS_Y  
)  
radius = 1.0
Sphere radius
slices = 20
The number of circles used to build the frame of the sphere in the vertical direction.
stacks = 20
The number of circles used to build the frame of the sphere in the horizontal direction.
axis = vizshape.AXIS_Y
Can be a positive or negative value of one of the following:

Flag

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

Remarks

This command will add a sphere.

Return Value

<node3D> object

Example

import vizshape

sphere = vizshape.addSphere()