<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>No, the problem I am facing is different. The I create the vtk files&nbsp;from output of a simulation program. I convert the results of that program into a&nbsp;vtk file so that I can visualize the data.</DIV>
<DIV>&nbsp;</DIV>
<DIV>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 "?€&nbsp;null null")</DIV>
<DIV>&nbsp;</DIV>
<DIV>Greets </DIV>
<DIV>Dmitri<BR><BR>--- David Doria <I>&lt;daviddoria+vtk@gmail.com&gt;</I></B> schrieb am <B>Do, 17.12.2009:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>Von: David Doria &lt;daviddoria+vtk@gmail.com&gt;<BR>Betreff: Re: [vtkusers] Create a VTK-File in binary format<BR>An: <BR>CC: vtkusers@vtk.org<BR>Datum: Donnerstag, 17. Dezember 2009, 11:25<BR><BR>
<DIV id=yiv1113070812>
<DIV class=gmail_quote>On Thu, Dec 17, 2009 at 5:46 AM, Dmitri Danewitz <SPAN dir=ltr>&lt;<A href="http://de.mc285.mail.yahoo.com/mc/compose?to=d.danewitz@yahoo.de" rel=nofollow target=_blank ymailto="mailto:d.danewitz@yahoo.de">d.danewitz@yahoo.de</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD style="FONT-FAMILY: inherit; font-size-adjust: inherit; font-stretch: inherit" vAlign=top>
<DIV>Hello all!</DIV>
<DIV>&nbsp;</DIV>
<DIV>I want to create a VTK File&nbsp; 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?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks a lot!</DIV>
<DIV>&nbsp;</DIV><FONT color=#888888>
<DIV>Dmitri</DIV></FONT></TD></TR></TBODY></TABLE><BR></BLOCKQUOTE>
<DIV><BR>Dmitri,<BR><BR>You can use vtkXMLPolyDataWriter with<A class=el href="http://www.vtk.org/doc/nightly/html/classvtkXMLWriter.html#a5ca529771f07f666a6291086948d66ea" rel=nofollow target=_blank> SetDataModeToBinary</A>()<BR><BR>Let us know if this does what you're looking for.<BR><BR>Thanks,<BR><BR>David <BR></DIV></DIV></DIV><BR>-----Integrierter Anhang folgt-----<BR><BR>
<DIV class=plainMail>_______________________________________________<BR>Powered by www.kitware.com<BR><BR>Visit other Kitware open-source projects at <A href="http://www.kitware.com/opensource/opensource.html" target=_blank>http://www.kitware.com/opensource/opensource.html</A><BR><BR>Please keep messages on-topic and check the VTK FAQ at: <A href="http://www.vtk.org/Wiki/VTK_FAQ" target=_blank>http://www.vtk.org/Wiki/VTK_FAQ</A><BR><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></DIV></BLOCKQUOTE></B></td></tr></table><br>__________________________________________________<br>Do You Yahoo!?<br>Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. <br>http://mail.yahoo.com