Vizard 8 » Command Index » Vizard modules » viz » <viz>.addTexQuad
8.0

<viz>.addTexQuad

Adds a texture quad

<viz>.addTexQuad(  
parent = viz.WORLD  
scene = viz.MainScene  
size = 0 # [width, height]
)  
parent = viz.WORLD
viz.WORLD
viz.SCREEN
viz.ORTHO
<node3d> object
scene = viz.MainScene
If the parent is viz.WORLD or viz.SCREEN, then the argument represents the scene to add the object to.
If the parent is viz.ORTHO, then the argument represents the window to add the object to.
If the parent is a valid node3d object, then the argument is ignored.
size = 0
Initial [width,height] size of texture quad

Remarks

A texture quad is a square polygon which is usually used to display textures. The default size is 1 x 1.

Return Value

<node3d:texquad> object

Example

texQuad = viz.addTexQuad()

See also

<node3d>.setTexQuadDisplayMode
<node3d>.getTexQuadDisplayMode
<node3d:texquad>.setSize
<node3d:texquad>.getSize