<div dir="ltr">Unfortunately we're still running the VTK5.03 package bundled into Ubuntu 8.04. Ideally I'd like to stick to using packages to allow easier distribution across different machines in our network. I haven'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'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"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</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;">
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 >= 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 <<a href="mailto:massivemonkeymayhem@gmail.com" target="_blank">massivemonkeymayhem@gmail.com</a>> wrote:<br>
> Hi. I'm just starting out in VTK. I've written a python script that converts<br>
> 3D scalar data to .VTK/.VTI files. But it's rather slow due to having to<br>
> loop over every voxel, which I am trying to eliminate.<br>
><br>
> I've implemented the script using NumPY arrays such that I can quickly<br>
> reorder the X,Y,Z data into any array structure as needed. This data needs<br>
> to be fed into a vtkImageData. Is there a fast way to create a VTK data<br>
> array from my data?<br>
><br>
> Regards,<br>
><br>
> Paul<br>
><br>
><br>
</div></div>> _______________________________________________<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>
</blockquote></div><br></div>