<!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>How can i prevent generating CellData and PointData 
XML elements?</FONT></DIV>
<DIV><FONT face=Arial size=2>Should i manually delete CellData and PointData XML 
elements?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Kind Regards</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>murat</FONT></DIV>
<BLOCKQUOTE dir=ltr 
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=murat.aydin@netcad.com.tr 
  href="mailto:murat.aydin@netcad.com.tr">Murat Aydın</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@vtk.org 
  href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, December 07, 2009 10:40 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> reading a vtu file with 
  vtkXMLUnstructuredGridReader </DIV>
  <DIV><BR></DIV>
  <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 a vtkUnstructuredGrid to a vtu file 
  with the following&nbsp; code:</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV>
  <P><FONT color=#800080 size=2>vtk.vtkXMLUnstructuredGridWriter w = new 
  vtk.vtkXMLUnstructuredGridWriter();</FONT></P>
  <P><FONT color=#800080 size=2>string ltempFile = filePath;</FONT></P>
  <P><FONT color=#800080 size=2>w.SetFileName(ltempFile);</FONT></P>
  <P><FONT color=#800080 size=2>w.SetDataModeToBinary();</FONT></P>
  <P><FONT color=#800080 
  size=2>w.SetInput(((vtk.vtkUnstructuredGrid)block));</FONT></P>
  <P><FONT color=#800080 size=2>w.write();</FONT></P>
  <P><FONT size=2>The generated vtu file is in attachments.</FONT></P>
  <P><FONT size=2>Then i read it with:</FONT></P><FONT color=#008000>
  <P><FONT color=#800080 size=2>vtk.vtkXMLUnstructuredGridReader w2 = new 
  vtk.vtkXMLUnstructuredGridReader();</FONT></P>
  <P><FONT color=#800080 size=2>w2.SetFileName(filePath);</FONT></P>
  <P><FONT color=#800080 size=2>w2.Update();</FONT></P>
  <P><FONT color=#000000 size=2>But the output data has no cells,no points 
  etc..</FONT></P>
  <P><FONT color=#000000 size=2>When i delete the PointData and CellData XML 
  elements, i can read the file succesfully.</FONT></P>
  <P><FONT color=#000000 size=2>Am i missing something in reading or writing 
  ?</FONT></P>
  <P><FONT face=Arial color=#000000 size=2>Kind Regards,</FONT></P>
  <P><FONT face=Arial color=#000000 size=2></FONT>&nbsp;</P>
  <P><FONT face=Arial color=#000000 
size=2>murat</FONT></P></FONT></DIV></BLOCKQUOTE></BODY></HTML>