[vtk-developers] [VTK 0013382]: vtkXMLUnstructuredGridWriter: corrupted output for polyhedral cells in appended mode

Mantis Bug Tracker mantis at public.kitware.com
Tue Aug 21 05:31:54 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.vtk.org/Bug/view.php?id=13382 
====================================================================== 
Reported By:                Tim Hutton
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   13382
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     backlog
Project:                    TBD 
Type:                       incorrect functionality 
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2012-08-21 05:31 EDT
Last Modified:              2012-08-21 05:31 EDT
====================================================================== 
Summary:                    vtkXMLUnstructuredGridWriter: corrupted output for
polyhedral cells in appended mode
Description: 
The Graphics\Cxx\TestPolyhedron0.cxx test works in ASCII mode, but comment-out
this line and it breaks:

writer->SetDataModeToAscii();

Alternatively, explicitly change it to:

writer->SetDataModeToAppended();

(Binary mode works fine.)

The resulting vtu file has malformed XML. It starts like this:

" offset="588"="1.0"?>
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian"
compressor="vtkZLibDataCompressor">
  <UnstructuredGrid>
...etc."

Still an issue in VTK 5.10.0.

An improved test would try all the different data modes (ascii, binary,
appended) and compressors (zlib, none).
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-08-21 05:31 Tim Hutton     New Issue                                    
======================================================================




More information about the vtk-developers mailing list