>>>>> "Alicea" == Alicea Gedz <[EMAIL PROTECTED]> writes:

    Alicea> When I open this file in MayaVi the vectors are not
    Alicea> pointing in the correct directions and do not have correct
    Alicea> magnitudes.

    Alicea> Have I not got the correct format?

Yes, the format is incorrect.  You need to specify the connectivity
between points in order to specify a polydata dataset.  If the data is
regularly spaced then you could try to use a structured grid or
structured points dataset where you don't need to specify connectivity
but the order of the points is x changing first, y next and z last.
you might find the section "Creating data files" in this talk:

 http://mayavi.sourceforge.net/docs/mayavi_talk.pdf

of some use.  You can also see if this script is of any use to you:

 http://mayavi.sourceforge.net/mwiki/PointClouds


Anyway. attached below is corrected dataset based on the data you
sent.  I think you also did not have the correct number of points.
You only had 87 and not 88 as your file specified.

To view this data I did this:

 mayavi -d file.vtk -f Delaunay3D -m Outline -m VelocityVector

or with a recent mayavi2:

 mayavi2 -d file.vtk -f Delaunay3D -m Outline -m Vectors


cheers,
prabhu

# vtk DataFile Version 2.0
Sontek data: Data/Neap_Ebb_Line_1_0605011026.vtk
ASCII
DATASET POLYDATA
POINTS 87 float
-20.98333 4.66667000001 -1.4
-20.98333 4.66667000001 -2.4
-20.98333 4.66667000001 -3.4
-20.98333 4.66667000001 -4.4
-20.98333 4.66667000001 -5.4
-20.98333 4.66667000001 -6.4
-20.98333 4.66667000001 -7.4
-20.98333 4.66667000001 -8.4
-20.98333 4.66667000001 -9.4
-20.98333 4.66667000001 -10.4
-20.98333 4.66667000001 -11.4
-20.98333 4.66667000001 -12.4
-20.98333 4.66667000001 -13.4
-20.98333 4.66667000001 -14.4
-20.98333 4.66667000001 -15.4
-20.98333 4.66667000001 -16.4
-20.98333 4.66667000001 -17.4
-20.98333 4.66667000001 -18.4
-20.98333 4.66667000001 -19.4
-20.98333 4.66667000001 -20.4
-20.98333 4.66667000001 -21.4
-20.98333 4.66667000001 -22.4
-20.93333 5.08332999999 -1.4
-20.93333 5.08332999999 -2.4
-20.93333 5.08332999999 -3.4
-20.93333 5.08332999999 -4.4
-20.93333 5.08332999999 -5.4
-20.93333 5.08332999999 -6.4
-20.93333 5.08332999999 -7.4
-20.93333 5.08332999999 -8.4
-20.93333 5.08332999999 -9.4
-20.93333 5.08332999999 -10.4
-20.93333 5.08332999999 -11.4
-20.93333 5.08332999999 -12.4
-20.93333 5.08332999999 -13.4
-20.93333 5.08332999999 -14.4
-20.93333 5.08332999999 -15.4
-20.93333 5.08332999999 -16.4
-20.93333 5.08332999999 -17.4
-20.93333 5.08332999999 -18.4
-20.93333 5.08332999999 -19.4
-20.93333 5.08332999999 -20.4
-20.93333 5.08332999999 -21.4
-20.88333 5.59999999999 -1.4
-20.88333 5.59999999999 -2.4
-20.88333 5.59999999999 -3.4
-20.88333 5.59999999999 -4.4
-20.88333 5.59999999999 -5.4
-20.88333 5.59999999999 -6.4
-20.88333 5.59999999999 -7.4
-20.88333 5.59999999999 -8.4
-20.88333 5.59999999999 -9.4
-20.88333 5.59999999999 -10.4
-20.88333 5.59999999999 -11.4
-20.88333 5.59999999999 -12.4
-20.88333 5.59999999999 -13.4
-20.88333 5.59999999999 -14.4
-20.88333 5.59999999999 -15.4
-20.88333 5.59999999999 -16.4
-20.88333 5.59999999999 -17.4
-20.88333 5.59999999999 -18.4
-20.88333 5.59999999999 -19.4
-20.88333 5.59999999999 -20.4
-20.88333 5.59999999999 -21.4
-20.88333 5.59999999999 -22.4
-20.76667 6.06667 -1.4
-20.76667 6.06667 -2.4
-20.76667 6.06667 -3.4
-20.76667 6.06667 -4.4
-20.76667 6.06667 -5.4
-20.76667 6.06667 -6.4
-20.76667 6.06667 -7.4
-20.76667 6.06667 -8.4
-20.76667 6.06667 -9.4
-20.76667 6.06667 -10.4
-20.76667 6.06667 -11.4
-20.76667 6.06667 -12.4
-20.76667 6.06667 -13.4
-20.76667 6.06667 -14.4
-20.76667 6.06667 -15.4
-20.76667 6.06667 -16.4
-20.76667 6.06667 -17.4
-20.76667 6.06667 -18.4
-20.76667 6.06667 -19.4
-20.76667 6.06667 -20.4
-20.76667 6.06667 -21.4
-20.76667 6.06667 -22.4

POLYGONS 87 174
1 0
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 20
1 21
1 22
1 23
1 24
1 25
1 26
1 27
1 28
1 29
1 30
1 31
1 32
1 33
1 34
1 35
1 36
1 37
1 38
1 39
1 40
1 41
1 42
1 43
1 44
1 45
1 46
1 47
1 48
1 49
1 50
1 51
1 52
1 53
1 54
1 55
1 56
1 57
1 58
1 59
1 60
1 61
1 62
1 63
1 64
1 65
1 66
1 67
1 68
1 69
1 70
1 71
1 72
1 73
1 74
1 75
1 76
1 77
1 78
1 79
1 80
1 81
1 82
1 83
1 84
1 85
1 86


POINT_DATA 87
VECTORS myVectors float
122.9 117.3 4.5
127.7 114.7 5.6
122.8 116.4 8.4
111.6 122.7 8.2
109.6 114.0 8.5
106.1 118.8 5.9
114.6 122.9 8.1
114.5 112.9 7.3
112.3 100.4 12.5
106.2 111.5 10.0
112.6 123.6 8.0
58.6 154.6 -1.0
74.4 154.9 7.8
136.3 57.4 33.2
15.3 -26.4 41.2
204.3 -127.8 34.2
126.9 -2.2 14.8
258.2 -79.6 19.1
131.5 14.4 -4.0
84.3 152.3 5.8
81.3 115.6 9.9
89.7 128.9 18.7
93.8 131.8 5.5
90.2 125.2 6.0
94.7 119.0 5.9
86.2 123.3 7.0
97.7 130.6 5.6
91.0 134.9 5.4
90.1 122.2 3.3
86.8 125.6 3.1
80.9 116.3 8.9
84.3 132.7 4.8
59.6 160.0 -0.9
30.6 189.9 0.5
36.9 161.9 -0.8
55.9 144.6 -7.4
19.7 33.9 0.9
112.5 -46.8 10.0
118.7 97.1 6.7
103.9 -99.4 -38.9
130.1 41.4 0.2
77.4 145.8 2.2
78.1 147.3 4.7
50.9 132.7 7.6
102.4 115.8 1.2
98.0 115.0 0.5
101.5 119.0 1.5
92.5 117.0 1.2
95.0 117.3 0.4
94.0 114.8 0.7
97.8 118.7 1.9
100.1 110.3 -0.5
81.1 134.6 -0.6
85.4 128.9 0.6
57.1 185.5 -8.4
45.4 199.8 -4.6
77.7 110.8 20.3
107.6 23.2 29.1
211.2 71.1 24.5
133.7 -37.4 16.9
182.5 -28.0 -15.5
111.4 80.8 1.4
82.6 127.5 -3.9
72.1 132.2 -6.4
50.9 119.2 0.6
93.9 127.8 11.3
92.7 117.0 2.8
101.8 109.7 -0.8
99.7 110.2 -3.6
99.3 120.5 -1.0
101.7 103.5 -0.4
96.9 114.2 -2.9
101.2 107.3 -1.3
108.1 110.2 2.0
95.8 104.7 4.5
91.3 121.4 0.8
46.9 150.0 -4.8
30.7 173.7 0.4
45.7 180.3 -2.7
152.3 46.7 14.6
127.6 22.3 -23.3
121.6 31.3 37.1
153.2 -49.8 -33.4
94.3 57.5 -1.6
93.1 104.0 3.7
82.2 119.7 2.4
70.0 125.7 0.4
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to