[vtk-developers] [VTK 0012326]: vtkXMLCompositeDataWriter does not write blocks with PolyData

Mantis Bug Tracker mantis at public.kitware.com
Fri Jul 1 09:04:32 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://www.vtk.org/Bug/view.php?id=12326 
====================================================================== 
Reported By:                Thomas F Albrecht
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   12326
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   high
Status:                     backlog
Project:                    TBD 
Type:                       incorrect functionality 
====================================================================== 
Date Submitted:             2011-07-01 09:04 EDT
Last Modified:              2011-07-01 09:04 EDT
====================================================================== 
Summary:                    vtkXMLCompositeDataWriter does not write blocks with
PolyData
Description: 
PolyData blocks are not written, because of this code in line 590ff:

  vtkstd::string fname;
  if(this->Internal->DataTypes[piece] <= 0) 
    {
    return fname;
    }

PolyData has DataType 0, so instead of just discarding invalid DataTypes with
values < 0 by returning only the name, the same is done for PolyData. 

This is easily fixed by replacing by:

  if(this->Internal->DataTypes[piece] <= 0) 

Then, everything works fine.

In the attached file, the bug is fixed, yet marked with a "FIXME" tag.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-07-01 09:04 Thomas F AlbrechtNew Issue                                    
2011-07-01 09:04 Thomas F AlbrechtFile Added: vtkXMLCompositeDataWriter.cxx     
              
======================================================================




More information about the vtk-developers mailing list