[vtkusers] Matlab plolt3D -> Paraview
Burlen
burlen at apollo.sr.unh.edu
Tue Dec 12 14:40:51 EST 2006
Hi, I may have missunderstood your question, if you are trying to plot a line
in 3 space, like matlab plot3d try this example:
# vtk DataFile Version 3.0
line example for henrike maass
ASCII
DATASET POLYDATA
POINTS 9 float
1.0000 0.0 0.0
0.7071 0.7071 0.25
0.0000 1.0000 0.5
-0.7071 0.7071 0.75
-1.0000 0.0000 1.0
-0.7071 -0.7071 1.25
-0.0000 -1.0000 1.5
0.7071 -0.7071 1.75
1.0000 -0.0000 2.0
LINES 8 24
2 0 1
2 1 2
2 2 3
2 3 4
2 4 5
2 5 6
2 6 7
2 7 8
On Tuesday 12 December 2006 12:11 pm, henrike maass wrote:
> Hello,
>
> I am a new user of Paraview and I would like to
> visualize about 100 points in a 3D domain. I have used
> plot3D() in Matlab and the data has the follwowing
> format
>
> x_1 y_1 z_1
> ...
> x_100 y_100 z_100
>
>
> I stored the data with the following header file:
>
> # vtk DataFile Version 3.0
> created by writeVTK (Matlab implementation)
> ASCII
> DATASET STRUCTURED_POINTS
> DIMENSIONS 1 100 1
> ORIGIN 0.000000 0.000000 0.000000
> SPACING 1.000000 1.000000 1.000000
> POINT_DATA 100
> SCALARS image_data double
> LOOKUP_TABLE default
> x_1 y_1 z_1
> ...
> x_100 y_100 z_100
>
>
> Unfortunately it seems that this format is not
> correct. Any help is very welcome.
>
> Thanks,
> Henry
>
>
>
> ___________________________________________________________________________
>_________ Have a burning question?
> Go to www.Answers.yahoo.com and get answers from real people who know.
> _______________________________________________
> 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
--
Burlen Loring
Space Science Center
Institute for the Study of Earth, Oceans, and Space
University of New Hampshire
39 College Road, Durham, NH 03824
Phone: 603-862-1140
More information about the vtkusers
mailing list