[vtkusers] How to represent voxel volume in .vtk file format?

Sergiy Tkachuk serg.tk at gmail.com
Sat Mar 10 18:05:43 EST 2012


Justin,

I am using C++.
But I am asking about .vtk file format.
Now I do not use vtk library at all, just would like to utilize .vtk file
format - it is quite straightforward.

Thanks,
Sergiy

10 марта 2012 г. 16:40 пользователь Justin Weber <onlyjus at gmail.com>написал:

> Sergiy,
>
> What code are you using? If you are using python <http://python.org/>, I
> have code that will take numpy arrays and save them to *.vtk files that
> work in paraview. However you need the pyhon wrapped vtk library. For
> windows, there is an awesome collection of windows binaries here:
> http://www.lfd.uci.edu/~gohlke/pythonlibs/, thanks  Christoph Gohlke!
>
> Also, there is PyEVTK <https://bitbucket.org/pauloh/pyevtk>. Another
> resource: http://www.vtk.org/Wiki/VTK/Writing_VTK_files_using_python.
>
> Justin
> On Mar 10, 2012 12:36 AM, "Sergiy Tkachuk" <serg.tk at gmail.com> wrote:
>
>>  Hi,
>>
>> I have 3d binary array which represents volume:
>> a[x,y,z] = 0 - no object,
>> a[x,y,z] = 1 - object region.
>>
>> I want to save it in .vtk format and view in ParaView<http://www.paraview.org/>
>> .
>> What is the simplest way to achieve this?
>>
>> I looked through the VTK file format<http://www.vtk.org/VTK/img/file-formats.pdf>,
>> but I have not found direct way to achieve what I need, just via other
>> structures..
>>
>> Best wishes,
>> Sergiy
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>


-- 
-------------------------
С уважением,
Сергей Ткачук

serg.tk at gmail.com, t-serg at inbox.ru
<http://serg.tk>http://sergtk.com
<t-serg at inbox.ru>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120311/f31c7082/attachment.htm>


More information about the vtkusers mailing list