GeomBuilder class in Visual style definition

Scene graph access (build and manipulate the 3d object tree)

35 members:

string code
multiline string

Script

integer currentNode
integer

currently selected node

string defaultStyle
string

default style

float matrix00
float

matrix[0,0]

float matrix01
float

matrix[1,0]

float matrix02
float

matrix[0,2]

float matrix03
float

matrix[0,3]

float matrix10
float

matrix[1,0]

float matrix11
float

matrix[1,1]

float matrix12
float

matrix[1,2]

float matrix13
float

matrix[1,3]

float matrix20
float

matrix[2,0]

float matrix21
float

matrix[2,1]

float matrix22
float

matrix[2,2]

float matrix23
float

matrix[2,3]

float matrix30
float

matrix[3,0]

float matrix31
float

matrix[3,1]

float matrix32
float

matrix[3,2]

float matrix33
float

matrix[3,3]

integer rootNode
integer

object's root node

integer updatingNode
integer

geometry node to be associated with current creature's element

function add
doesn't return a value

add

function add(integer node)

add a child node to the current node

function addBranch

addBranch

function addBranch()

create the branch node as a child of the current node and make it the new current node

function addTransform

addTransform

function addTransform()

create the transform node as a child of the current node and make it the new current node.

function dump
doesn't return a value

dump object hierarchy

function dump(integer node, integer level)
function getBranch
returns integer

getBranch

function getBranch(integer branch_node, integer branch_index)
function matrixMove
doesn't return a value

translate matrix

function matrixMove(float x, float y, float z)
function matrixMove1
doesn't return a value

translate matrix

function matrixMove1(integer xyz)

MechPart.pos can be used here

function matrixOrient
doesn't return a value

set matrix orientation

function matrixOrient(float x, float y, float z)
function matrixOrient1
doesn't return a value

set matrix orientation

function matrixOrient1(integer xyz)

MechPart.orient can be used here

function matrixReset

load identity matrix

function matrixReset()
function matrixRotate
doesn't return a value

rotate matrix

function matrixRotate(float x, float y, float z)
function matrixRotate1
doesn't return a value

rotate matrix

function matrixRotate1(integer xyz)
function matrixScale
doesn't return a value

scale matrix

function matrixScale(float x, float y, float z)
function setMatrix
doesn't return a value

set matrix

function setMatrix(integer transform_node)

copy current matrix into specified node


Global context>>Experiment definition>>Visual style definition