this Tcl package is a bridge between vtk Tcl Data Array entities (created with the vtk package) 
and GiD ObjArrays that are a special Tcl_Obj types to efficiently handle arrays of char, int, float or doubles

These GiD ObjArrays could be created or used for example as input/oubput of some GiD tcl commands 
(GiD_Info mesh, GiD_Result, GiD_Mesh, with -array flag), and also from the hdf5 Tcl package used by GiD


it is created a new Tcl command vtk_objarray with this syntax:
vtk_objarray objarray_from_vtk_data_array <vtkarray>
to convert from vtk to Tcl_Obj

vtk_objarray vtk_data_array_from_objarray <objarray> ?vtkCharArray|vtkIntArray|vtkFloatArray|vtkDoubleArray|vtkIdList|vtkIdTypeArray? 
to convert from Tcl_Obj to to vtk (if vtk array type is not specified vtkDoubleArray is used by default)


examples:
1- Convert a vtkFloatArray to a Tcl_Obj of array of floats

package require vtk_objarray ;#implicitly invoke package require vtk
vtkFloatArray pcoords 
pcoords SetNumberOfTuples 3
pcoords SetTuple1 0 1.5
pcoords SetTuple1 1 0.3
pcoords SetTuple1 2 2.4
set x [vtk_objarray objarray_from_vtk_data_array pcoords]
pcoords Delete


2- Convert an array of integers to an vtkIntArray 
 (the array created froms a Tcl List, with flag intarray to force the conversion to a GiD Tcl_Obj array of integers)

package require vtk_objarray ;#implicitly invoke package require vtk
set vtkIntArray [vtk_objarray vtk_data_array_from_objarray {1 2 3 4} vtkIntArray]
$vtkIntArray Print
$vtkIntArray ListMethods
$vtkIntArray DescribeMethods GetComponent
$vtkIntArray GetComponent 0 0
$vtkIntArray Delete

