[vtkusers] Matlab plolt3D -> Paraview

Emiliano Beronich emiliano at veccsa.com
Tue Dec 12 14:06:45 EST 2006


Hello Henrike,

You can use one of these options:

1)
# vtk DataFile Version 3.0

ASCII
DATASET POLYDATA
ORIGIN 0.000000 0.000000 0.000000
SPACING 1.000000 1.000000 1.000000
POINTS 100 float
x_1 y_1 z_1
...
x_100 y_100 z_100


2)
# vtk DataFile Version 3.0

ASCII
DATASET STRUCTURED_GRID
ORIGIN 0.000000 0.000000 0.000000
SPACING 1.000000 1.000000 1.000000
DIMENSIONS 1 100 1
POINTS 100 float
x_1 y_1 z_1
...
x_100 y_100 z_100

Regards,
Emiliano




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
> 
> 



More information about the vtkusers mailing list