r3knot

r3knot

Class

real/code/r3knot.h

Library

r3code

Description:

Knot sequence model

See Also

oops/r3model.h

Super Class

r3Model

R3CLID_MODEL

JavaScript

r3Knot

Class Identifier

R3CLID_KNOT - 115

Methods

INSERT,

Attributes

Knots, KnotCnt,

Registration

int R3RegisterKnotClass(R3APP *app);

R3KM_INSERT

Method

INSERT

Identifier

R3KM_INSERT

Return

R3BOOL, index of the inserted knot, or -1 for error

Param 3:

R3FLOAT, new knot

JavaScript

rc = obj.INSERT(p3);

Description

Insert new knot

Knots

Attribute

Knots

Identifier

R3KA_Knots

JavaScript type

Number

C type

R3FLOAT*

Description

array of float values defining knot sequence

Syntax


jsobj.SetKnots(value);
value = jsobj.GetKnots();


R3FLOAT* value = ...;
R3SetAttrs(r3obj, R3KA_Knots, value, R3TAG_END);
R3FLOAT* value;
R3GetAttrs(r3obj, R3KA_Knots, &value, R3TAG_END);

KnotCnt

Attribute

KnotCnt

Identifier

R3KA_KnotCnt

JavaScript type

Integer

C type

R3INT

Description

size of array

Syntax


jsobj.SetKnotCnt(value);
value = jsobj.GetKnotCnt();


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