Vizard 7 » Command Index » Vizard objects » node3d » <node3d:onthefly>.startLayer
7.7

<node3d:onthefly>.startLayer

Create new layer

<node3d:onthefly>.startLayer(  
type  
name = ''  
)  
type
The type of geometric object to draw

Can be any of the following: viz.LINES, viz.LINE_LOOP, viz.LINE_STRIP, viz.POLYGON, viz.QUADS, viz.QUAD_STRIP, viz.TRIANGLES, viz.TRIANGLE_STRIP, or viz.TRIANGLE_FAN. See a standard OpenGL text for a definition of these geometry primitives.
name = ''
The name of the layer which can be used as the node argument when changing material settings (color, texture, etc...).

Remarks

This command initiates the building of a simple or complicated geometry object that can then be easily manipulated in your script. One easy thing to acheive with this tool is rendering a surface defined exclusively by moving dots.

Type can be any geometric object that defined in the 'gl.h' header file. You can have multiple geometric shapes within one On-The-Fly Object.

Return Value

None