r3fratre

r3fratre

Class

real/objects/r3fratre.h

Library

r3obj

Description:

Fractal tree generator.

See Also

real/objects/r3level.h

Super Class

r3Level

R3CLID_LEVEL

JavaScript

r3Fractaltree

Class Identifier

R3CLID_FRACTALTREE - 342

Methods

UPDATETARGETS, BEGINTREE,

Attributes

Age, BranchCount, BranchAngle,

R3FRATREM_UPDATETARGETS

Method

UPDATETARGETS

Identifier

R3FRATREM_UPDATETARGETS

Return

R3BOOL, TRUE if succeeded

JavaScript

rc = obj.UPDATETARGETS();

Description

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

Method

BEGINTREE

Identifier

R3FRATREM_BEGINTREE

JavaScript

obj.BEGINTREE();

Description

Age

Attribute

Age

Identifier

R3FRATREA_Age

JavaScript type

Number

C type

R3FLOAT

Description

age in years, sub objects define one year old tree

Syntax


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

Attribute

BranchCount

Identifier

R3FRATREA_BranchCount

JavaScript type

Integer

C type

R3INT

Description

number of sub-branches per node

Syntax


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

Attribute

BranchAngle

Identifier

R3FRATREA_BranchAngle

JavaScript type

Number

C type

R3FLOAT

Description

angle parent/sub branches

Syntax


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

R3TREETYPE_CROSSECTION
R3TREETYPE_NURBSCURVE

Tags

Tags

R3FRATREA_Time
R3FRATREA_ThicknessFactor