<div dir="ltr">Unfortunately we&#39;re still running the VTK5.03 package bundled into Ubuntu 8.04. Ideally I&#39;d like to stick to using packages to allow easier distribution across different machines in our network. I haven&#39;t been able to find any VTK5.2 packages for Ubuntu or Debian.<br>
<br>I tried making my own .deb package from source until I realized that I also didn&#39;t have the necessary version of CMake. I did try compiling and installing 5.2 onto my own machine but my code started to segfault like crazy, so I slowly backed away from that.<br>
<br>Is there another approach that I can use to read Python/Numpy data into VTK 5.03? Or a fool-proof .deb distribution of 5.2?<br><br>Thanks,<br><br>Paul<br><br><br><br><div class="gmail_quote">On Fri, Sep 19, 2008 at 5:31 PM, David E DeMarle <span dir="ltr">&lt;<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>&gt;</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;">
I believe so yes.<br>
<br>
Take a look at the numpy_support.py module. As long as you have numpy<br>
on your machine and are using &gt;= VTK5.2 you should be able to use it.<br>
<br>
cheers,<br>
Dave DeMarle<br>
<div><div></div><div><br>
<br>
On Fri, Sep 19, 2008 at 9:31 AM, Paul &lt;<a href="mailto:massivemonkeymayhem@gmail.com" target="_blank">massivemonkeymayhem@gmail.com</a>&gt; wrote:<br>
&gt; Hi. I&#39;m just starting out in VTK. I&#39;ve written a python script that converts<br>
&gt; 3D scalar data to .VTK/.VTI files. But it&#39;s rather slow due to having to<br>
&gt; loop over every voxel, which I am trying to eliminate.<br>
&gt;<br>
&gt; I&#39;ve implemented the script using NumPY arrays such that I can quickly<br>
&gt; reorder the X,Y,Z data into any array structure as needed. This data needs<br>
&gt; to be fed into a vtkImageData. Is there a fast way to create a VTK data<br>
&gt; array from my data?<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Paul<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; This is the private VTK discussion list.<br>
&gt; Please keep messages on-topic. Check the FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br></div>