<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-9">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>my vtkunstructuredgrid contains only vtkPointData
in which there is only a vtkBitArray and all values are 0 or 1.0. There is no
other fields.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Kind Regards</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>murat aydin</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=jerome.velut@gmail.com
href="mailto:jerome.velut@gmail.com">Jérôme</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=murat.aydin@netcad.com.tr
href="mailto:murat.aydin@netcad.com.tr">Murat Aydýn</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=vtkusers@vtk.org
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, October 22, 2009 8:50
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [vtkusers] writing and
reading with vtk</DIV>
<DIV><BR></DIV>Oops, keyboard mistake... Let's go on:<BR>Replacing it by valid
values fix my problem.<BR><BR>HTH,<BR>Jerome<BR><BR>
<DIV class=gmail_quote>2009/10/22 Jérôme <SPAN dir=ltr><<A
href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi,<BR>I
got such a problem, that comes from some -1.#IND or (Not-a-Number, or NaN)
values in the fields. Replit by hand with a valid value <BR><BR>
<DIV class=gmail_quote>2009/10/21 Murat Aydýn <SPAN dir=ltr><<A
href="mailto:murat.aydin@netcad.com.tr"
target=_blank>murat.aydin@netcad.com.tr</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV></DIV>
<DIV class=h5>
<DIV bgcolor="#ffffff">
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am writing vtkunsturucturedgrid to
a file and then reading it.However, after reading i get nothing:
number of cells , number of points all are zero.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I attached my file.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>My code is :</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#2b91af size=2><FONT size=2>
<P></P></FONT><FONT color=#010001 size=2>vtk</FONT><FONT
size=2>.</FONT><FONT color=#2b91af
size=2>vtkXMLUnstructuredGridWriter</FONT><FONT size=2> </FONT><FONT
color=#010001 size=2>w</FONT><FONT size=2> = </FONT><FONT color=#0000ff
size=2>new</FONT><FONT size=2> </FONT><FONT color=#010001
size=2>vtk</FONT><FONT size=2>.</FONT><FONT color=#2b91af
size=2>vtkXMLUnstructuredGridWriter</FONT><FONT size=2>();
<P></P></FONT><FONT color=#0000ff size=2>string</FONT><FONT size=2>
</FONT><FONT color=#010001 size=2>ltempFile</FONT><FONT size=2> =
</FONT><FONT color=#010001 size=2>System</FONT><FONT size=2>.</FONT><FONT
color=#010001 size=2>IO</FONT><FONT size=2>.</FONT><FONT color=#2b91af
size=2>Path</FONT><FONT size=2>.</FONT><FONT color=#010001
size=2>GetTempFileName</FONT><FONT size=2>();
<P></P></FONT><FONT color=#010001 size=2>w</FONT><FONT
size=2>.</FONT><FONT color=#010001 size=2>SetFileName</FONT><FONT
size=2>(</FONT><FONT color=#010001 size=2>ltempFile</FONT><FONT size=2>);
<P></P></FONT><FONT color=#010001 size=2>w</FONT><FONT
size=2>.</FONT><FONT color=#010001 size=2>SetDataModeToBinary</FONT><FONT
size=2>();
<P></P></FONT><FONT color=#010001 size=2>w</FONT><FONT
size=2>.</FONT><FONT color=#010001 size=2>SetInput</FONT><FONT
size=2>(((</FONT><FONT color=#010001 size=2>vtk</FONT><FONT
size=2>.</FONT><FONT color=#2b91af size=2>vtkUnstructuredGrid</FONT><FONT
size=2>)</FONT><FONT color=#010001 size=2>grid</FONT><FONT size=2>));
<P></P></FONT><FONT color=#010001 size=2>w</FONT><FONT
size=2>.</FONT><FONT color=#010001 size=2>Write</FONT><FONT size=2>();
<P> </P>
<P></P></FONT><FONT color=#010001 size=2>vtk</FONT><FONT
size=2>.</FONT><FONT color=#2b91af
size=2>vtkXMLUnstructuredGridReader</FONT><FONT size=2> </FONT><FONT
color=#010001 size=2>w2</FONT><FONT size=2> = </FONT><FONT color=#0000ff
size=2>new</FONT><FONT size=2> </FONT><FONT color=#010001
size=2>vtk</FONT><FONT size=2>.</FONT><FONT color=#2b91af
size=2>vtkXMLUnstructuredGridReader</FONT><FONT size=2>();
<P></P></FONT><FONT color=#010001 size=2>w2</FONT><FONT
size=2>.</FONT><FONT color=#010001 size=2>SetFileName</FONT><FONT
size=2>(</FONT><FONT color=#010001 size=2>ltempFile</FONT><FONT size=2>);
<P></P></FONT><FONT color=#010001 size=2>w2</FONT><FONT
size=2>.</FONT><FONT color=#010001 size=2>Update</FONT><FONT
size=2>();</FONT><FONT size=2><FONT face=Arial color=#000000><FONT size=1>
<P>int num = w2.GetOutput().GetNumberOfPoints();</P></FONT></FONT></FONT>
<P><FONT size=2><FONT face=Arial color=#000000>Kind
Regards</FONT></FONT></P>
<P><FONT size=2><FONT face=Arial color=#000000></FONT></FONT> </P>
<P><FONT size=2><FONT face=Arial color=#000000>murat
aydin</FONT></FONT></P>
<P><FONT size=2><FONT face=Arial
color=#000000></FONT></FONT> </P></FONT> </DIV></DIV><BR></DIV></DIV>_______________________________________________<BR>Powered
by <A href="http://www.kitware.com"
target=_blank>www.kitware.com</A><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><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>