VertexBuilder class in Visual style definition

24 members:

object material
object

material

integer node
integer

geometry node

This field returns the geometry node for use in GeomBuilder. You have to set all relevant geometry properties before using this field. The usual sequence:
1. newXXX - selects the geometry type (see your OpenGL manual for explanation)
2. Set all properties (add vertices, normals, colors, texture coordinates, material). All unspecified properties are assumed to have default values.
3. Use the resulting node ( GeomBuilder.add(VertexBuilder.node) )

integer twosided
integer, 0 .. 1 (false/true)

twosided

function addCalculatedNormal

add calculated normal vector

function addCalculatedNormal()

calculate the normal vector from 3 coordinates. integer arguments are the vertices' indices. 0,1,2... = first, second, third vertex, -1,-2,-3,... = last, last-1, last-2 vertex

function addColor

add color (4 values)

function addColor()
function addNormal

add normal vector (3 coordinates or vector)

function addNormal()
function addNormal_1

add normal vector (3 coordinates), normalizing the coordinates

function addNormal_1()

use addNormal instead of this function

function addTexCoord

add texture coordinates (2 coordinates or vector)

function addTexCoord()
function addVertex

add vertex (3 coordinates or vector)

function addVertex()
function genTexCoords

generate texture coordinates

function genTexCoords()
function genTexCoordsXY

generate texture coordinates for XY plane

function genTexCoordsXY()
function genTexCoordsXZ

generate texture coordinates for XZ plane

function genTexCoordsXZ()
function genTexCoordsYZ

generate texture coordinates for YZ plane

function genTexCoordsYZ()
function new
doesn't return a value

start new empty geometry

function new(integer type)
function newLineLoop

start new empty geometry

function newLineLoop()
function newLines

start new empty geometry

function newLines()
function newLineStrip

start new empty geometry

function newLineStrip()
function newPoints

start new empty geometry

function newPoints()
function newPolygon

start new empty geometry

function newPolygon()
function newQuads

start new empty geometry

function newQuads()
function newQuadStrip

start new empty geometry

function newQuadStrip()
function newTriangleFan

start new empty geometry

function newTriangleFan()
function newTriangles

start new empty geometry

function newTriangles()
function newTriangleStrip

start new empty geometry

function newTriangleStrip()

Global context>>Experiment definition>>Visual style definition