[vtkusers] vtkFloatArray with tcl

Elizabeth Nitao enitao at craft-tech.com
Tue Aug 22 16:33:18 EDT 2006


Additionally, the financial field example uses a for loop to insert each 
individual value...something I'm trying to avoid.

thanks,
elizabeth

Bijia PANG wrote:
> you can see the example of finacial, which shows a way to read the data from *.txt file.
>
>
> ----- Original Message ----- 
> From: "Elizabeth Nitao" <enitao at craft-tech.com>
> To: <vtkusers at vtk.org>
> Sent: Tuesday, August 22, 2006 4:09 PM
> Subject: [vtkusers] vtkFloatArray with tcl
>
>
>   
>> Hi all,
>> I am trying to load a vtkFloatArray with a significant number of 
>> scalars.  Is there a way to simply pass all the scalars as an array 
>> instead of iterating through all of them using SetValue?  I tried the 
>> method SetArray; however I receive an error saying that the input 
>> arguments are incorrect.  I am using a Tcl list as the data array which 
>> may be the problem?
>>
>> Similarly is there a way to load many points into a vtkUnstructuredGrid 
>> by simply passing 3 lists (x, y, z coord) to the grid?
>>
>> Thanks so much!
>> Elizabeth
>>
>> _______________________________________________
>> This is the private VTK discussion list. 
>> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers





More information about the vtkusers mailing list