Vizard 7 » Command Index » Vizard modules » viz » <viz:window>.setPolyMode
7.6

<viz:window>.setPolyMode

Set the polygon render mode

<viz:window>.setPolyMode(  
mode  
)  
mode
One of the following modes:

Polygon modes

viz.POLY_FILL

Render filled polygons (default).

viz.POLY_WIRE

Render polygons in wireframe.

viz.POLY_POINT

Render polygons in points.

viz.TOGGLE

Toggle through the polygon modes.

Remarks

This command will set the render mode for polygons. Pressing the F3 key is equivalent to calling this function with the viz.TOGGLE parameter.

Return Value

None

Example

#Render in wireframe mode
viz.window.setPolyMode(viz.POLY_WIRE)

See also

<viz:window>.getPolyMode