Skip to content
Snippets Groups Projects
Commit 5b502262 authored by Cory Quammen's avatar Cory Quammen
Browse files

vtkXMLMultiBlockDataReader: fix when reading nested multipiece datasets

When a vtkMultiBlockDataSet contains a vtkMultiPieceDataSet,
vtkXMLPMultiBlockDataWriter will split each piece into another
vtkMultiPieceDataSet. As a result, the written XML data file will
contain nested "Piece" elements. Since vtkMultiPieceDataSets are not
hierarchical, this dataset cannot be recreated as described.

To fix, have the reader replace the top-level vtkMultiPieceDataSet
with a vtkMultiBlockDataSet instead when nested Piece elements are
found.

Modified test to exercise writing out a vtkMultiPieceDataSet block and
read it back in.
parent d2310987
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment