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&#39;t it?)<br>
<br>My advice is to check how your data are written.<br><br>&#39;Hope that helps,<br>Jerome<br><br><div class="gmail_quote">2009/10/22 Murat Aydýn <span dir="ltr">&lt;<a href="mailto:murat.aydin@netcad.com.tr">murat.aydin@netcad.com.tr</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





<div bgcolor="#ffffff">
<div><font size="2" face="Arial">Hi,</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">I am sending ascii version of the file. Thanks for 
your interest.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Kind Regards</font></div>
<div><font size="2" face="Arial">murat aydin</font></div>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"><div class="im">
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
  <div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<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-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; 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-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; 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-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>Sent:</b> Thursday, October 22, 2009 12:23 
  PM</div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; 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 &quot;scalars_&quot; 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">&lt;<a href="mailto:murat.aydin@netcad.com.tr" target="_blank">murat.aydin@netcad.com.tr</a>&gt;</span><br>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff">
    <div><font size="2" face="Arial">Hi,</font></div>
    <div><font size="2" face="Arial"></font> </div>
    <div><font size="2" face="Arial">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 size="2" face="Arial"></font> </div>
    <div><font size="2" face="Arial">Kind Regards</font></div>
    <div><font size="2" face="Arial"></font> </div>
    <div><font size="2" face="Arial">murat aydin</font></div>
    <div>
    <div></div>
    <div>
    <blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
      <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- 
      Original Message ----- </div>
      <div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<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-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; 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-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; 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-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> 
      Thursday, October 22, 2009 8:50 AM</div>
      <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; 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&#39;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">&lt;<a href="mailto:jerome.velut@gmail.com" target="_blank">jerome.velut@gmail.com</a>&gt;</span><br>
      <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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">&lt;<a href="mailto:murat.aydin@netcad.com.tr" target="_blank">murat.aydin@netcad.com.tr</a>&gt;</span><br>
        <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
          <div>
          <div></div>
          <div>
          <div bgcolor="#ffffff">
          <div><font size="2" face="Arial">Hi,</font></div>
          <div><font size="2" face="Arial"></font> </div>
          <div><font size="2" face="Arial">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 size="2" face="Arial"></font> </div>
          <div><font size="2" face="Arial">I attached my file.</font></div>
          <div> </div>
          <div><font size="2" face="Arial">My code is :</font></div>
          <div> </div>
          <div><font size="2" color="#2b91af"><font size="2">
          <p></p></font><font size="2" color="#010001">vtk</font><font size="2">.</font><font size="2" color="#2b91af">vtkXMLUnstructuredGridWriter</font><font size="2"> </font><font size="2" color="#010001">w</font><font size="2"> = </font><font size="2" color="#0000ff">new</font><font size="2"> </font><font size="2" color="#010001">vtk</font><font size="2">.</font><font size="2" color="#2b91af">vtkXMLUnstructuredGridWriter</font><font size="2">(); 
          <p></p></font><font size="2" color="#0000ff">string</font><font size="2"> 
          </font><font size="2" color="#010001">ltempFile</font><font size="2"> = 
          </font><font size="2" color="#010001">System</font><font size="2">.</font><font size="2" color="#010001">IO</font><font size="2">.</font><font size="2" color="#2b91af">Path</font><font size="2">.</font><font size="2" color="#010001">GetTempFileName</font><font size="2">(); 
          <p></p></font><font size="2" color="#010001">w</font><font size="2">.</font><font size="2" color="#010001">SetFileName</font><font size="2">(</font><font size="2" color="#010001">ltempFile</font><font size="2">); 
          <p></p></font><font size="2" color="#010001">w</font><font size="2">.</font><font size="2" color="#010001">SetDataModeToBinary</font><font size="2">(); 
          <p></p></font><font size="2" color="#010001">w</font><font size="2">.</font><font size="2" color="#010001">SetInput</font><font size="2">(((</font><font size="2" color="#010001">vtk</font><font size="2">.</font><font size="2" color="#2b91af">vtkUnstructuredGrid</font><font size="2">)</font><font size="2" color="#010001">grid</font><font size="2">)); 
          <p></p></font><font size="2" color="#010001">w</font><font size="2">.</font><font size="2" color="#010001">Write</font><font size="2">(); 

          <p> </p>
          <p></p></font><font size="2" color="#010001">vtk</font><font size="2">.</font><font size="2" color="#2b91af">vtkXMLUnstructuredGridReader</font><font size="2"> </font><font size="2" color="#010001">w2</font><font size="2"> = </font><font size="2" color="#0000ff">new</font><font size="2"> </font><font size="2" color="#010001">vtk</font><font size="2">.</font><font size="2" color="#2b91af">vtkXMLUnstructuredGridReader</font><font size="2">(); 
          <p></p></font><font size="2" color="#010001">w2</font><font size="2">.</font><font size="2" color="#010001">SetFileName</font><font size="2">(</font><font size="2" color="#010001">ltempFile</font><font size="2">); 
          <p></p></font><font size="2" color="#010001">w2</font><font size="2">.</font><font size="2" color="#010001">Update</font><font size="2">();</font><font size="2"><font color="#000000" face="Arial"><font size="1"> 
          <p>int num = 
          w2.GetOutput().GetNumberOfPoints();</p></font></font></font>
          <p><font size="2"><font color="#000000" face="Arial">Kind 
          Regards</font></font></p>
          <p><font size="2"><font color="#000000" face="Arial"></font></font> </p>
          <p><font size="2"><font color="#000000" face="Arial">murat 
          aydin</font></font></p>
          <p><font size="2"><font color="#000000" face="Arial"></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>