Andy,
That works, thanks a lot!
On 27.02.2012 18:59, Andy Bauer wrote:
Here's an example of a vtk file for a vtkImageData. You should
replace your point_data with the stuff in cell_data and below.
# vtk DataFile Version 3.0
vtk output
ASCII
DATASET STRUCTURED_POINTS
DIMENSIONS 6 6 6
SPACING 0.5 0.5 0.4
ORIGIN -1.75 -1.25 0
CELL_DATA 125
SCALARS Iterations float
LOOKUP_TABLE default
2.72328 3.45044 7.03686 7.00315 3.16331 4.90654 9.72502 36.0403 55.6008
27.7841 6.59032 15.3261 61.034 100 51.6339 4.90654 9.72502 36.0403
55.6008 27.7841 2.72328 3.45044 7.03686 7.00315 3.16331 2.93832 3.75843
4.8884 4.20847 2.59079 5.21366 10.4737 34.3978 40.9854 15.1877 6.90041
16.0901 61.7183 76.0317 27.4008 5.21366 10.4737 34.3978 40.9854 15.1877
2.93832 3.75843 4.8884 4.20847 2.59079 2.81409 3.29411 3.16924 2.47337
2.0295 5.55142 8.73196 19.5018 15.1721 2.37915 7.81056 13.2459 34.9554
27.5159 2.59175 5.55142 8.73196 19.5018 15.1721 2.37915 2.81409 3.29411
3.16924 2.47337 2.0295 2.40534 2.30328 2.01239 1.7007 1.47918 4.36637
5.43824 4.54564 1.98106 1.55367 6.09223 8.30195 6.87261 2.17773 1.58229
4.36637 5.43824 4.54564 1.98106 1.55367 2.40534 2.30328 2.01239 1.7007
1.47918 1.62593 1.50275 1.30108 1.15201 1.09478 2.10661 1.79362 1.38934
1.18118 1.10523 2.49978 1.99952 1.4175 1.19351 1.10924 2.10661 1.79362
1.38934 1.18118 1.10523 1.62593 1.50275 1.30108 1.15201 1.09478
On Mon, Feb 27, 2012 at 12:14 PM, Alexander Grayver
<[email protected] <mailto:[email protected]>> wrote:
Thanks Andy,
I do have values in the cell centers, but when I change
representation to the Surface (or Surface with Edges)
and then plot two clips in different dimensions getting what is
showed on the picture.
I just want my data not to be shifted against each other when
plotting these clips.
How should then data be written (rectilinear structured grid with
values assigned to the cell centers) to be properly visualized?
On 27.02.2012 17 <tel:27.02.2012%2017>:54, Andy Bauer wrote:
I'm able to load it into paraview. Whether or not the data is as
it supposed to be, I can't tell since I don't know what you're
trying to represent and how you're hoping to do it. The grid you
sent only has point data while the image you sent looked like
cell data so something is inconsistent.
The only thing I can think is that maybe your writer is getting
confused with the dimensions. For VTK structured grids like
vtkRectilinearGrid, the dimensions are the number of points in
each direction.
Andy
On Mon, Feb 27, 2012 at 11:13 AM, Alexander Grayver
<[email protected] <mailto:[email protected]>> wrote:
Andy,
Please find attached my data.
I suspect there might be something wrong with my way of
writing VTK files. Can you confirm this file is ok or not?
It is desirable to avoid my own filter since I'm not familiar
with python and ParaView filters.
On 27.02.2012 16 <tel:27.02.2012%2016>:20, Andy Bauer wrote:
It looks like your cell data array that you're coloring by
is not getting created correctly. Can you share the data set?
If this is really your data though and you want to change it
then you'll either have to write your own filter or use the
python programmable filter to make the adjustment.
Andy
On Mon, Feb 27, 2012 at 10:01 AM, Alexander Grayver
<[email protected] <mailto:[email protected]>>
wrote:
Hello,
I'm visualizing structured rectilinear grid and noticed
there is some inconsistency with shown values. Attached
you will see two clips taken from one dataset.
I want them to match however they do not. Can I do it
somehow?
--
Regards,
Alexander
_______________________________________________
Powered by www.kitware.com <http://www.kitware.com>
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView
Wiki at: http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview
--
Regards,
Alexander
_______________________________________________
Powered by www.kitware.com <http://www.kitware.com>
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview
--
Regards,
Alexander
--
Regards,
Alexander
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview