<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Andy,<br>
<br>
That works, thanks a lot!<br>
<br>
On 27.02.2012 18:59, Andy Bauer wrote:
<blockquote
cite="mid:CAMaOp+FbsgwC8nR9yZEwqMz6jzyPDrz-1GKgFv1X6i51KcUSSg@mail.gmail.com"
type="cite">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.<br>
<br>
# vtk DataFile Version 3.0<br>
vtk output<br>
ASCII<br>
DATASET STRUCTURED_POINTS<br>
DIMENSIONS 6 6 6<br>
SPACING 0.5 0.5 0.4<br>
ORIGIN -1.75 -1.25 0<br>
CELL_DATA 125<br>
SCALARS Iterations float<br>
LOOKUP_TABLE default<br>
2.72328 3.45044 7.03686 7.00315 3.16331 4.90654 9.72502 36.0403
55.6008<br>
27.7841 6.59032 15.3261 61.034 100 51.6339 4.90654 9.72502 36.0403<br>
55.6008 27.7841 2.72328 3.45044 7.03686 7.00315 3.16331 2.93832
3.75843<br>
4.8884 4.20847 2.59079 5.21366 10.4737 34.3978 40.9854 15.1877
6.90041<br>
16.0901 61.7183 76.0317 27.4008 5.21366 10.4737 34.3978 40.9854
15.1877<br>
2.93832 3.75843 4.8884 4.20847 2.59079 2.81409 3.29411 3.16924
2.47337<br>
2.0295 5.55142 8.73196 19.5018 15.1721 2.37915 7.81056 13.2459
34.9554<br>
27.5159 2.59175 5.55142 8.73196 19.5018 15.1721 2.37915 2.81409
3.29411<br>
3.16924 2.47337 2.0295 2.40534 2.30328 2.01239 1.7007 1.47918
4.36637<br>
5.43824 4.54564 1.98106 1.55367 6.09223 8.30195 6.87261 2.17773
1.58229<br>
4.36637 5.43824 4.54564 1.98106 1.55367 2.40534 2.30328 2.01239
1.7007<br>
1.47918 1.62593 1.50275 1.30108 1.15201 1.09478 2.10661 1.79362
1.38934<br>
1.18118 1.10523 2.49978 1.99952 1.4175 1.19351 1.10924 2.10661
1.79362<br>
1.38934 1.18118 1.10523 1.62593 1.50275 1.30108 1.15201 1.09478<br>
<br>
<div class="gmail_quote">
On Mon, Feb 27, 2012 at 12:14 PM, Alexander Grayver <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:agrayver@gfz-potsdam.de">agrayver@gfz-potsdam.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"> Thanks Andy,<br>
<br>
I do have values in the cell centers, but when I change
representation to the Surface (or Surface with Edges) <br>
and then plot two clips in different dimensions getting what
is showed on the picture. <br>
I just want my data not to be shifted against each other
when plotting these clips. <br>
<br>
How should then data be written (rectilinear structured grid
with values assigned to the cell centers) to be properly
visualized?<br>
<br>
On <a moz-do-not-send="true" href="tel:27.02.2012%2017"
value="+12702201217" target="_blank">27.02.2012 17</a>:54,
Andy Bauer wrote:
<blockquote type="cite">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. <br>
<br>
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.<br>
<br>
Andy<br>
<br>
<div class="gmail_quote">On Mon, Feb 27, 2012 at 11:13 AM,
Alexander Grayver <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:agrayver@gfz-potsdam.de"
target="_blank">agrayver@gfz-potsdam.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt
0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div>
<div>
<div bgcolor="#ffffff" text="#000000"> Andy,<br>
<br>
Please find attached my data.<br>
I suspect there might be something wrong with my
way of writing VTK files. Can you confirm this
file is ok or not?<br>
It is desirable to avoid my own filter since I'm
not familiar with python and ParaView filters. <br>
<br>
On <a moz-do-not-send="true"
href="tel:27.02.2012%2016"
value="+12702201216" target="_blank">27.02.2012
16</a>:20, Andy Bauer wrote:
<blockquote type="cite">It looks like your cell
data array that you're coloring by is not
getting created correctly. Can you share the
data set?<br>
<br>
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.<br>
<br>
Andy<br>
<br>
<div class="gmail_quote">On Mon, Feb 27, 2012
at 10:01 AM, Alexander Grayver <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:agrayver@gfz-potsdam.de"
target="_blank">agrayver@gfz-potsdam.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin: 0pt 0pt 0pt 0.8ex;
border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;"> Hello,<br>
<br>
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.<br>
I want them to match however they do not.
Can I do it somehow?<span><font
color="#888888"><br>
<br>
-- <br>
Regards,<br>
Alexander<br>
<br>
</font></span><br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com"
target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects
at <a moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check
the ParaView Wiki at: <a
moz-do-not-send="true"
href="http://paraview.org/Wiki/ParaView"
target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://www.paraview.org/mailman/listinfo/paraview"
target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
</blockquote>
</div>
<br>
</blockquote>
<br>
<br>
<pre cols="72">--
Regards,
Alexander</pre>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView
Wiki at: <a moz-do-not-send="true"
href="http://paraview.org/Wiki/ParaView"
target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://www.paraview.org/mailman/listinfo/paraview"
target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
</blockquote>
</div>
<br>
<span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
<span class="HOEnZb"><font color="#888888"> <br>
<br>
<pre cols="72">--
Regards,
Alexander</pre>
</font></span></div>
</blockquote>
</div>
<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Regards,
Alexander</pre>
</body>
</html>