Commit 256a8b74 authored by Charl Botha's avatar Charl Botha
Browse files

ERR: When setting empty output, not only UpdateExtent, but also WholeExtent

should be set to an empty volume.  Some filters don't honour UpdateExtent.
parent 163a4280
......@@ -19,7 +19,7 @@
#include "vtkXMLDataElement.h"
#include "vtkXMLDataParser.h"
vtkCxxRevisionMacro(vtkXMLStructuredDataReader, "1.12");
vtkCxxRevisionMacro(vtkXMLStructuredDataReader, "1.13");
//----------------------------------------------------------------------------
vtkXMLStructuredDataReader::vtkXMLStructuredDataReader()
......@@ -76,7 +76,8 @@ int vtkXMLStructuredDataReader::ReadPrimaryElement(vtkXMLDataElement* ePrimary)
void vtkXMLStructuredDataReader::SetupEmptyOutput()
{
// Special extent to indicate no input.
this->GetOutputAsDataSet(0)->SetUpdateExtent(1, 0, 1, 0, 1, 0);
this->GetOutputAsDataSet(0)->SetWholeExtent(0, -1, 0, -1, 0, -1);
this->GetOutputAsDataSet(0)->SetUpdateExtent(0, -1, 0, -1, 0, -1);
}
//----------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment