r3polygon

r3polygon

Class

real/objects/r3polygon.h

Library

r3obj

Description:

Polygon object

See Also

oops/r3vect.h real/objects/r3prim.h

Super Class

r3Primitive

R3CLID_PRIMITIVE

JavaScript

r3Polygon

Class Identifier

R3CLID_POLYGON - 1648

Methods

SETPOINTLOCAL, GETPOINTLOCAL,

Attributes

Points, Count, ExtraCount,

Registration

int R3RegisterPolygonClass(R3APP *app);

R3POLYGONM_SETPOINTLOCAL

Method

SETPOINTLOCAL

Identifier

R3POLYGONM_SETPOINTLOCAL

Return

R3BOOL, true if succeeded

Param 1:

R3INT, index

Param 3:

R3VECTOR, point

JavaScript

rc = obj.SETPOINTLOCAL(p1, p3);

Description

Set point in object space

R3POLYGONM_GETPOINTLOCAL

Method

GETPOINTLOCAL

Identifier

R3POLYGONM_GETPOINTLOCAL

Return

R3BOOL, true if succeeded

Param 1:

R3INT, index

Param 3:

R3VECTOR, point

JavaScript

rc = obj.GETPOINTLOCAL(p1, p3);

Description

Get point in object space

Points

Attribute

Points

Identifier

R3POLYGONA_Points

Type

r3Vect

Description

points definign the polygon

Syntax


jsobj.SetPoints(value);
value = jsobj.GetPoints();


R3VECTOR* value = ...;
R3SetAttrs(r3obj, R3POLYGONA_Points, value, R3TAG_END);
R3VECTOR* value;
R3GetAttrs(r3obj, R3POLYGONA_Points, &value, R3TAG_END);

Count

Attribute

Count

Identifier

R3POLYGONA_Count

JavaScript type

Integer

C type

R3INT

Description

number of points

Syntax


jsobj.SetCount(value);
value = jsobj.GetCount();


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

ExtraCount

Attribute

ExtraCount

Identifier

R3POLYGONA_ExtraCount

JavaScript type

Integer

C type

R3INT

Description

number of extra geom. points to be allocated, sub classes are responsible for managing these

Syntax


jsobj.SetExtraCount(value);


R3INT value = ...;
R3SetAttrs(r3obj, R3POLYGONA_ExtraCount, value, R3TAG_END);


r3appobj *

Tags

Tags

R3POLYGONA_HasPointwiseColors