<!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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I am writing&nbsp;vtkunsturucturedgrid to 
a&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I attached my file.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>My code is :</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#2b91af size=2><FONT size=2>
<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>&nbsp;</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></P><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>&nbsp;</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>&nbsp;</P></FONT></FONT>&nbsp;</DIV></BODY></HTML>