|
|
|
SWU_cArrayToListSWU_cArrayToList is a library procedure which allows users to convert a C array of type long, integer, float or double to a Tcl list. The input data is a C array ID. package require SWU SWU_cArrayToList C_array_ID
Return ValueIf the procedure succeeds then it returns a list of values of the element's C array, otherwise an error message string is returned on the Tk console command line. Side EffectsNone. Examples
This example gets the nurbs curve element, defines the number of knots for the nurbs curve, allocates a C array of doubles, fills this C array with the knots values, converts the knots array to a Tcl list and prints out the knots values. See Also |
|
copyright Video-Collage Inc. |