[vtk-developers] vtkXMLUnstructuredGridWriter

Gary J. Templet gjtempl at sandia.gov
Wed May 7 17:07:21 EDT 2003


Hi,

I'd like to suggest a small change to vtkXMLUnstructuredGridWriter.

 vtkXMLUnstructuredGridWriter::WriteInlinePieceAttributes() should be:

void vtkXMLUnstructuredGridWriter::WriteInlinePieceAttributes()
{
  vtkUnstructuredGrid* input = this->GetInput();
  this->WriteScalarAttribute("NumberOfPoints",
input->GetNumberOfPoints());
  this->WriteScalarAttribute("NumberOfCells",
input->GetNumberOfCells());
}

to have the "NumberOfPoints" added to the <Piece.......> line in the
output file. Currently, it only prints the "NumberOfCells".

Thanks,
Gary




More information about the vtk-developers mailing list