curvearrayΒΆ

class curvearray

An array of curves with their variables. See also trianglearray for more information on procedural shape manipulation

Members

Methods:

int result getcount ( ) Returns the number of curves
aabb result getcurveaabb ( int index ) Returns the local bounding box of a single curve
int result getcurvesize ( int index ) Returns the number of vertices on a single curve
table result getcurvevar ( int id , string name ) Returns a variable of a curve.
table result getcurvevars ( int id ) Returns all the variables of a curve
int result getsize ( ) Returns the number of vertices on all curves
table result getvectvars ( ) Returns all the variables packed in a vect
int result hasvar ( string name ) Returns true if the variable is present in the curvearray

Documentation

int result getcount ( )

Returns the number of curves

Return:

  • result


aabb result getcurveaabb ( int index )

Returns the local bounding box of a single curve

Arguments:

  • index The curve index in the curvearray

Return:

  • result


int result getcurvesize ( int index )

Returns the number of vertices on a single curve

Arguments:

  • index The curve index in the curvearray

Return:

  • result


table result getcurvevar ( int id , string name )

Returns a variable of a curve.

Arguments:

  • id The curve id
  • name The variable name to get

Return:

  • result Returns a table with the parameter for each vertices of the curve or nil if the variable is not present.


table result getcurvevars ( int id )

Returns all the variables of a curve

Arguments:

  • id The curve id

Return:

  • result


int result getsize ( )

Returns the number of vertices on all curves

Return:

  • result


table result getvectvars ( )

Returns all the variables packed in a vect

Return:

  • result


int result hasvar ( string name )

Returns true if the variable is present in the curvearray

Arguments:

  • name The variable name to test

Return:

  • result