r3fratre
real/objects/r3fratre.h
r3obj
Fractal tree generator.
r3Level
R3CLID_LEVEL
r3Fractaltree
R3CLID_FRACTALTREE - 342
R3FRATREM_UPDATETARGETS
UPDATETARGETS
R3FRATREM_UPDATETARGETS
R3BOOL, TRUE if succeeded
rc = obj.UPDATETARGETS();
Create/update tree according to the current attributes and sub objects. This method is called when rotator object's attributes or sub objects are changed. Catch this method if you want to change the entire logic of the tree generator.
R3FRATREM_BEGINTREE
BEGINTREE
R3FRATREM_BEGINTREE
obj.BEGINTREE();
Age
Age
R3FRATREA_Age
Number
R3FLOAT
age in years, sub objects define one year old tree
jsobj.SetAge(value);
value = jsobj.GetAge();
R3FLOAT value = ...;
R3SetAttrs(r3obj, R3FRATREA_Age, value, R3TAG_END);
R3FLOAT value;
R3GetAttrs(r3obj, R3FRATREA_Age, &value, R3TAG_END);
BranchCount
BranchCount
R3FRATREA_BranchCount
Integer
R3INT
number of sub-branches per node
jsobj.SetBranchCount(value);
value = jsobj.GetBranchCount();
R3INT value = ...;
R3SetAttrs(r3obj, R3FRATREA_BranchCount, value, R3TAG_END);
R3INT value;
R3GetAttrs(r3obj, R3FRATREA_BranchCount, &value, R3TAG_END);
BranchAngle
BranchAngle
R3FRATREA_BranchAngle
Number
R3FLOAT
angle parent/sub branches
jsobj.SetBranchAngle(value);
value = jsobj.GetBranchAngle();
R3FLOAT value = ...;
R3SetAttrs(r3obj, R3FRATREA_BranchAngle, value, R3TAG_END);
R3FLOAT value;
R3GetAttrs(r3obj, R3FRATREA_BranchAngle, &value, R3TAG_END);
Built-in tree types