<!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>You are right, i did what you have said (deleted
pointdata and celldata XML elements) and it worked. Then is it a VTK
bug? Or should i do something extra when writing or reading file (my code
is wrong?)?</FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks for your help.</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 3:47
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [vtkusers] writing and
reading with vtk</DIV>
<DIV><BR></DIV>Hi,<BR>I just looked at your file: It seems that you have an
empty PointData field, as well as empty CellData. If you delete these XML
elements (PointData and CellData), your geometry is successfully read (sort of
3 merged boxes, isn't it?)<BR><BR>My advice is to check how your data are
written.<BR><BR>'Hope that helps,<BR>Jerome<BR><BR>
<DIV class=gmail_quote>2009/10/22 Murat Aydýn <SPAN dir=ltr><<A
href="mailto:murat.aydin@netcad.com.tr">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 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 sending ascii version of the file. Thanks
for your interest.</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>murat aydin</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV class=im>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">-----
Original Message ----- </DIV>
<DIV
style="BACKGROUND: rgb(228,228,228); FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"><B>From:</B>
<A title=jerome.velut@gmail.com href="mailto:jerome.velut@gmail.com"
target=_blank>Jérôme</A> </DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>To:</B>
<A title=murat.aydin@netcad.com.tr href="mailto:murat.aydin@netcad.com.tr"
target=_blank>Murat Aydýn</A> </DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Cc:</B>
<A title=vtkusers@vtk.org href="mailto:vtkusers@vtk.org"
target=_blank>vtkusers@vtk.org</A> </DIV></DIV>
<DIV>
<DIV></DIV>
<DIV class=h5>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B>
Thursday, October 22, 2009 12:23 PM</DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Subject:</B>
Re: [vtkusers] writing and reading with vtk</DIV>
<DIV><BR></DIV>Hi,<BR>You should send an ASCII version of your file, in
order to check the validity of the values you wrote. For what I can see in
you XML vtu, your PointData array named "scalars_" range from 1 to 1.
Moreover, I felt surprised to find a mixture of binary data in an XML
ascii file... But maybe someone else could give more precision on
that.<BR><BR>Best regards,<BR>Jerome<BR><BR>
<DIV class=gmail_quote>2009/10/22 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 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>
<DIV>
<DIV></DIV>
<DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">-----
Original Message ----- </DIV>
<DIV
style="BACKGROUND: rgb(228,228,228); FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"><B>From:</B>
<A title=jerome.velut@gmail.com href="mailto:jerome.velut@gmail.com"
target=_blank>Jérôme</A> </DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>To:</B>
<A title=murat.aydin@netcad.com.tr
href="mailto:murat.aydin@netcad.com.tr" target=_blank>Murat Aydýn</A>
</DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Cc:</B>
<A title=vtkusers@vtk.org href="mailto:vtkusers@vtk.org"
target=_blank>vtkusers@vtk.org</A> </DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B>
Thursday, October 22, 2009 8:50 AM</DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><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"
target=_blank>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>
<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></DIV></DIV></DIV><BR>_______________________________________________<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></DIV></DIV></BLOCKQUOTE></DIV><BR>_______________________________________________<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></BODY></HTML>