material
object |
material
|
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) )
|
twosided
integer, 0 .. 1 (false/true) |
twosided
|
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
|
addColor
|
add color (4 values)
function addColor()
|
addNormal
|
add normal vector (3 coordinates or vector)
function addNormal()
|
addNormal_1
|
add normal vector (3 coordinates), normalizing the coordinates
function addNormal_1()
use addNormal instead of this function
|
addTexCoord
|
add texture coordinates (2 coordinates or vector)
function addTexCoord()
|
addVertex
|
add vertex (3 coordinates or vector)
function addVertex()
|
genTexCoords
|
generate texture coordinates
function genTexCoords()
|
genTexCoordsXY
|
generate texture coordinates for XY plane
function genTexCoordsXY()
|
genTexCoordsXZ
|
generate texture coordinates for XZ plane
function genTexCoordsXZ()
|
genTexCoordsYZ
|
generate texture coordinates for YZ plane
function genTexCoordsYZ()
|
new
doesn't return a value |
start new empty geometry
function new(integer type)
|
newLineLoop
|
start new empty geometry
function newLineLoop()
|
newLines
|
start new empty geometry
function newLines()
|
newLineStrip
|
start new empty geometry
function newLineStrip()
|
newPoints
|
start new empty geometry
function newPoints()
|
newPolygon
|
start new empty geometry
function newPolygon()
|
newQuads
|
start new empty geometry
function newQuads()
|
newQuadStrip
|
start new empty geometry
function newQuadStrip()
|
newTriangleFan
|
start new empty geometry
function newTriangleFan()
|
newTriangles
|
start new empty geometry
function newTriangles()
|
newTriangleStrip
|
start new empty geometry
function newTriangleStrip()
|