Discussion:
[Paraview] Data structure for 'table to structured grid' filter
fenglei qi
2014-09-15 17:19:43 UTC
Permalink
Dear all,

I met a problem when I converted table data to structured grid. The data
is arranged as attached test.csv file. I set up Whole extent as ((0,2),
(0,2), (0,1)). But the grid system does not look right. See below. I think
the problem is the data ordering problem that are usually talked about in
previous threads. Can anyone give a example of how to use this filter or
give me some information on how to do it correctly. Thanks for all your
considering.
[image: ???? 1]

Fenglei Qi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140915/cd96962b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Grid_wireframe.PNG
Type: image/png
Size: 38733 bytes
Desc: not available
URL: <Loading Image...>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.csv
Type: text/csv
Size: 133 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140915/cd96962b/attachment-0001.csv>
Andy Bauer
2014-09-15 17:29:45 UTC
Permalink
Hi,

I think the issue is that your ordering is wrong. VTK/ParaView assumes that
you iterate over x the fastest, then y, and z is iterated over the slowest.

For the table to structured grid filter, if you set the whole extent to [0,
2, 0, 1, 0, 2] and the X Column to y, Y Column to z and Z Column to x then
at least the connectivity looks correct. If this output has the wrong
orientation you can either change the ordering of the CXV file or use the
transform filter to rotate it around.

Andy
Post by fenglei qi
Dear all,
I met a problem when I converted table data to structured grid. The data
is arranged as attached test.csv file. I set up Whole extent as ((0,2),
(0,2), (0,1)). But the grid system does not look right. See below. I think
the problem is the data ordering problem that are usually talked about in
previous threads. Can anyone give a example of how to use this filter or
give me some information on how to do it correctly. Thanks for all your
considering.
[image: ???? 1]
Fenglei Qi
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://paraview.org/Wiki/ParaView
http://public.kitware.com/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140915/769cd3dc/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Grid_wireframe.PNG
Type: image/png
Size: 38733 bytes
Desc: not available
URL: <Loading Image...>
fenglei qi
2014-09-15 18:41:16 UTC
Permalink
Hi Andy,

It works in your way. Can you provide more information on how to make a
correct ordering of points. I don't understand how the connectivity is
built in Paraview. Any sources for me to refer to? Thank you.

Fenglei
Post by Andy Bauer
Hi,
I think the issue is that your ordering is wrong. VTK/ParaView assumes
that you iterate over x the fastest, then y, and z is iterated over the
slowest.
For the table to structured grid filter, if you set the whole extent to
[0, 2, 0, 1, 0, 2] and the X Column to y, Y Column to z and Z Column to x
then at least the connectivity looks correct. If this output has the wrong
orientation you can either change the ordering of the CXV file or use the
transform filter to rotate it around.
Andy
Post by fenglei qi
Dear all,
I met a problem when I converted table data to structured grid. The data
is arranged as attached test.csv file. I set up Whole extent as ((0,2),
(0,2), (0,1)). But the grid system does not look right. See below. I think
the problem is the data ordering problem that are usually talked about in
previous threads. Can anyone give a example of how to use this filter or
give me some information on how to do it correctly. Thanks for all your
considering.
[image: ???? 1]
Fenglei Qi
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://paraview.org/Wiki/ParaView
http://public.kitware.com/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140915/d4931b85/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Grid_wireframe.PNG
Type: image/png
Size: 38733 bytes
Desc: not available
URL: <Loading Image...>
Loading...