[vtkusers] VTK- Vectors visualization

Berk Geveci berklist at nycap.rr.com
Fri Mar 14 12:09:00 EST 2003


You can always use the SetVectorsName in the reader. However,
this is inefficient since every time you read nth vector, all
n-1 previous vectors have to skipped by the reader. I would 
recommend using one file per field if you are interested in
efficiency (of course, then it is more work to maintain).

On Fri, 2003-03-14 at 11:57, Marcio Antonio Mathias (EDB) wrote:
> Hi,
> Hi VTK users,
> I posted this questions some days ago but I got no answer. Does someone know how to read ´n´ vectors blocks (identified  by "vectorsn" in the example), retriving one by each time?. All these vectors are described in the same file and, they are  associated to a single data structures data points block
> I am presenting as follows the data format that I am trying to use in this task. I will be glad if someone send me an alternative format to implement this visualization.
> 
> Dummy example:
> 
> # vtk DataFile Version 2.0
> T Ey 250 1.667778e-011 4.169446e-009
> ASCII
> DATASET STRUCTURED_POINTS
> DIMENSIONS 2  1  2 
> SPACING 1.0 1.0 1.0
> ORIGIN 0 0 0
> POINT_DATA 4
> SCALARS scalars float
> LOOKUP_TABLE default
> 1.0 1.0
> 1.0 1.0
> VECTORS vectors0 float
> 0 1 0
> 1 0 0
> 0 0 1
> 1 0 0
> VECTORS vectors1 float
> 0 1 0
> 0 1 0
> 1 0 0
> 0 0 1
> VECTORS vectors2 float
> .
> .
> .
> 
> Thanks, Marcio.





More information about the vtkusers mailing list