Hi,<br><br>The problem is (as stated in my previous email) that the format that I used for vectors in even the legacy VTK file does not display what I want, so I don't want to reverse engineer that. So I need a proper format for displaying vectors using legacy VTK files, so I can reverse engineer it.<br>
<br>Thanks,<br>Desh<br><br><div class="gmail_quote">On Thu, Oct 30, 2008 at 4:01 AM, Bryn Lloyd <span dir="ltr"><<a href="mailto:blloyd@vision.ee.ethz.ch">blloyd@vision.ee.ethz.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
<br>
I am not 100% sure, but think this is just a visualization trick done in PV.<br>
<br>
You should try the suggestion of Dominik and reverse engineer the XML format.<br>
<br>
<br>
If you still need to visualize the vectors at the cell centers do the following:<br>
<br>
In PV call Filters -> Cell Centers, and then display the glyphs.<br>
<br>
<br>
<br>
Bryn<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Deshpreet Singh Bedi wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Hi,<br>
<br>
I have used legacy VTK file formats to view Vectors in other visualization programs, such as VisIt. The format I used was:<br>
<br>
CELL_DATA 1<br>
VECTORS Spin double<br>
-0.449584 0.00705966 0.0459143<br>
<br>
That should generate a vector at the center of the cell with vector components vx, vy, vz given by the doubles above. When I try to use the same format in ParaView, I run into a problem: instead of the desired visualization, three vectors, each with the same direction and magnitude, are shown. I could not even get my vectors to be visualized correctly in ParaView using the legacy format (even though it has worked in other visualization programs), so I cannot yet use ParaView's in-built file-format conversion functionality. Any thoughts on what is going on?<br>
<br>
Thanks,<br>
Desh<br>
<br></div><div class="Ih2E3d">
On Wed, Oct 29, 2008 at 4:29 PM, Dominik Szczerba <<a href="mailto:dominik@itis.ethz.ch" target="_blank">dominik@itis.ethz.ch</a> <mailto:<a href="mailto:dominik@itis.ethz.ch" target="_blank">dominik@itis.ethz.ch</a>>> wrote:<br>
<br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Do you generate the file yourself (without VTK)? If so, I would start<br>
with something simpler as a legacy file. Then load it into PV, save as<br>
XML, and reverse-engineer the resulting file.<br>
<br>
Dominik<br>
<br>
<br>
Deshpreet Singh Bedi wrote:<br>
> Hi Dominik,<br>
><br>
> Thanks for your reply. One thing though -- what is the exact<br>
syntax for<br>
> including Vectors? It is not precisely explained in the VTK File<br>
> Formats packet. I want the Cell Data that I include to be<br>
visualized as<br>
> vectors originating from the center of my cells in ParaView. How<br>
do I<br>
> specify that?<br>
><br>
> Thanks,<br>
> Desh<br>
><br>
> On Wed, Oct 29, 2008 at 3:52 PM, Dominik Szczerba<br>
<<a href="mailto:dominik@itis.ethz.ch" target="_blank">dominik@itis.ethz.ch</a> <mailto:<a href="mailto:dominik@itis.ethz.ch" target="_blank">dominik@itis.ethz.ch</a>><br></div><div><div></div><div class="Wj3C7c">
> <mailto:<a href="mailto:dominik@itis.ethz.ch" target="_blank">dominik@itis.ethz.ch</a> <mailto:<a href="mailto:dominik@itis.ethz.ch" target="_blank">dominik@itis.ethz.ch</a>>>> wrote:<br>
><br>
> You can opt for immediate delivery and not a digest.<br>
><br>
> If to use point or cell data is up to you and what you need.<br>
> Cell-centered scheme means you have data defined at cell center,<br>
in this<br>
> case the length of the array has to be that of the number of cells;<br>
> point-data means your data is defined at the points - in that<br>
case the<br>
> size of the array has to match the number of points.<br>
><br>
> Dominik<br>
><br>
> Deshpreet Singh Bedi wrote:<br>
>> Hi,<br>
><br>
>> What is the best way to include vectors in XML-format VTK files?<br>
> Should<br>
>> they be included as Cell Data or Point Data? What is the<br>
difference,<br>
>> and what is the format for each?<br>
><br>
>> Thanks,<br>
><br>
>> Deshpreet Bedi<br>
><br>
>> P.S. If possible, I would greatly appreciate it if a reply could be<br>
>> sent, in addition to the list-serve, directly to my email, as the<br>
> daily<br>
>> digest comes at far-too-widespread intervals. Thank you.<br>
><br>
><br>
><br>
><br>
------------------------------------------------------------------------<br>
><br>
>> _______________________________________________<br>
>> This is the private VTK discussion list.<br>
>> Please keep messages on-topic. Check the FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
<br>
- --<br>
Dominik Szczerba, Ph.D.<br>
Computational Physics Group<br>
Foundation for Research on IT in Society<br>
<a href="http://www.itis.ethz.ch" target="_blank">http://www.itis.ethz.ch</a><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2.0.4-svn0 (GNU/Linux)<br>
Comment: Using GnuPG with SUSE - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
iD8DBQFJCMfE/EBMh9bUuzIRAsHPAJ0YtAdiSrdcgv3Qtt4mwBwt29M0SQCg2W9P<br>
6NtJlMz4Mk7QHTUmlJsSPX4=<br>
=dVmk<br>
-----END PGP SIGNATURE-----<br>
<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote>
<br>
<br>
-- <br>
-------------------------------------------------<br><font color="#888888">
Bryn Lloyd<br>
Computer Vision Laboratory<br>
ETH Zürich, Sternwartstrasse 7<br>
CH - 8092 Zürich, Switzerland<br>
Tel: +41 44 63 27690<br>
Fax: +41 44 63 21199<br>
-------------------------------------------------<br>
</font></blockquote></div><br>