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

<vizshape>.addPyramid

Adds a pyramid

<vizshape>.addPyramid(  
base = [1.0,1.0]  
height = 1.0  
axis = vizshape.AXIS_Y  
splitFaces = False  
)  
base = [1.0,1.0]
Dimensions of base
height = 1.0
Pyramid height
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

splitFaces = False
Setting the splitFaces argument to True will split up each face of the pyramid into a separate sub-node with the following names: bottom, front, back, left, right.

Remarks

This command will add a pyramid.

Return Value

<node3d> object

Example

import vizshape

pyramid = vizshape.addPyramid()