[vtkusers] Create a VTK-File in binary format
Dmitri Danewitz
d.danewitz at yahoo.de
Thu Dec 17 07:12:28 EST 2009
No, the problem I am facing is different. The I create the vtk files from output of a simulation program. I convert the results of that program into a vtk file so that I can visualize the data.
I have such a vtk-converter that creates ASCII files. Now I want to build one that makes BINARY files and do not know how to convert an int variable, lets say "1" into a format that fits the BINARY vtk (for one it is "?€ null null")
Greets
Dmitri
--- David Doria <daviddoria+vtk at gmail.com> schrieb am Do, 17.12.2009:
Von: David Doria <daviddoria+vtk at gmail.com>
Betreff: Re: [vtkusers] Create a VTK-File in binary format
An:
CC: vtkusers at vtk.org
Datum: Donnerstag, 17. Dezember 2009, 11:25
On Thu, Dec 17, 2009 at 5:46 AM, Dmitri Danewitz <d.danewitz at yahoo.de> wrote:
Hello all!
I want to create a VTK File with my own C# program. I have the data stored in int variables. Does someone know a way in C# to write them into a vtk not as "12345" but as "?€ _ _" (binary) format?
Thanks a lot!
Dmitri
Dmitri,
You can use vtkXMLPolyDataWriter with SetDataModeToBinary()
Let us know if this does what you're looking for.
Thanks,
David
-----Integrierter Anhang folgt-----
_______________________________________________
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
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091217/68e77085/attachment.htm>
More information about the vtkusers
mailing list