r3group

r3group

Class

real/objects/r3group.h

Library

r3obj

Description:

Sub group object. Refers to number of points of other objects

See Also

real/objects/r3prim.h

Super Class

r3Primitive

R3CLID_PRIMITIVE

JavaScript

r3Group

Class Identifier

R3CLID_GROUP - 1403

Methods

UPDATETARGETS, INVERTREFERENCES, XOR, ENUMTARGETPOINTS,

Attributes

PointCount,

Registration

int R3RegisterGroupClass(R3APP *app);

R3GROUPM_UPDATETARGETS

Method

UPDATETARGETS

Identifier

R3GROUPM_UPDATETARGETS

JavaScript

obj.UPDATETARGETS();

Description

Group changed, update target points accordingly

R3GROUPM_INVERTREFERENCES

Method

INVERTREFERENCES

Identifier

R3GROUPM_INVERTREFERENCES

JavaScript

obj.INVERTREFERENCES();

Description

Invert group references - a referred point becomes unreferred and vise versa.

R3GROUPM_XOR

Method

XOR

Identifier

R3GROUPM_XOR

Param 3:

R3OBJ*, array of groups

JavaScript

obj.XOR(p3);

Description

Apply XOR boolean operation between referred points. as a result, mutually referred points are removed from the given sub groups.

R3GROUPM_ENUMTARGETPOINTS

Method

ENUMTARGETPOINTS

Identifier

R3GROUPM_ENUMTARGETPOINTS

Return

R3BOOL, true if all points were enumarated

Param 3:

R3TAG*, R3RA_Hook, R3RA_HookData,

JavaScript

rc = obj.ENUMTARGETPOINTS(p3);

Description

Enumerate target points. Calls the given hook: int hook(R3OBJ *target, R3INT point_index, void *data);

PointCount

Attribute

PointCount

Identifier

R3GROUPA_PointCount

JavaScript type

Integer

C type

R3INT

Description

number of points

Syntax


jsobj.SetPointCount(value);
value = jsobj.GetPointCount();


R3INT value = ...;
R3SetAttrs(r3obj, R3GROUPA_PointCount, value, R3TAG_END);
R3INT value;
R3GetAttrs(r3obj, R3GROUPA_PointCount, &value, R3TAG_END);

handles

R3GRHT_VERTEX

position in our object space

index of the point to be controlled

target object