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 class="gmail_quote">On Wed, Oct 29, 2008 at 4:29 PM, Dominik Szczerba <span dir="ltr"><<a href="mailto:dominik@itis.ethz.ch">dominik@itis.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;">
<div class="Ih2E3d">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</div>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>
<div class="Ih2E3d"><br>
Dominik<br>
<br>
<br>
Deshpreet Singh Bedi wrote:<br>
</div><div class="Ih2E3d">> Hi Dominik,<br>
><br>
> Thanks for your reply. One thing though -- what is the exact 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 visualized as<br>
> vectors originating from the center of my cells in ParaView. How do I<br>
> specify that?<br>
><br>
> Thanks,<br>
> Desh<br>
><br>
> On Wed, Oct 29, 2008 at 3:52 PM, Dominik Szczerba <<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a><br>
</div><div><div></div><div class="Wj3C7c">> <mailto:<a href="mailto:dominik@itis.ethz.ch">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, 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 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 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>
>> 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>
</div></div>iD8DBQFJCMfE/EBMh9bUuzIRAsHPAJ0YtAdiSrdcgv3Qtt4mwBwt29M0SQCg2W9P<br>
6NtJlMz4Mk7QHTUmlJsSPX4=<br>
=dVmk<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br>