diff --git a/vtkm/filter/entity_extraction/ExtractStructured.cxx b/vtkm/filter/entity_extraction/ExtractStructured.cxx index a1962fb51..891a115b0 100644 --- a/vtkm/filter/entity_extraction/ExtractStructured.cxx +++ b/vtkm/filter/entity_extraction/ExtractStructured.cxx @@ -74,7 +74,7 @@ vtkm::cont::DataSet ExtractStructured::DoExecute(const vtkm::cont::DataSet& inpu this->VOI, this->SampleRate, this->IncludeBoundary, - this->IncludeOffset); + this->VOIIsGlobal); // Create map arrays for mapping fields. Could potentially save some time to first check to see // if these arrays would be used. diff --git a/vtkm/filter/entity_extraction/ExtractStructured.h b/vtkm/filter/entity_extraction/ExtractStructured.h index b4f1599d2..b1eb20e52 100644 --- a/vtkm/filter/entity_extraction/ExtractStructured.h +++ b/vtkm/filter/entity_extraction/ExtractStructured.h @@ -78,8 +78,17 @@ public: VTKM_CONT void SetIncludeBoundary(bool value) { this->IncludeBoundary = value; } + /// Get if VOI is specified in global point (rather than in local) indices VTKM_CONT - void SetIncludeOffset(bool value) { this->IncludeOffset = value; } + bool GetVOIIsGlobal() const { return this->VOIIsGlobal; } + /// Set if VOI is specified in global point (rather than in local) indices + VTKM_CONT + void SetVOIIsGlobal(bool value) { this->VOIIsGlobal = value; } + /// Set if VOI is specified in global point (rather than in local) indices + /// (depracted in favor of a method with a name that better conveys purpose) + VTKM_DEPRECATED(2.0) + VTKM_CONT + void SetIncludeOffset(bool value) { this->VOIIsGlobal = value; } private: VTKM_CONT @@ -88,7 +97,7 @@ private: vtkm::RangeId3 VOI = vtkm::RangeId3(0, -1, 0, -1, 0, -1); vtkm::Id3 SampleRate = { 1, 1, 1 }; bool IncludeBoundary = false; - bool IncludeOffset = false; + bool VOIIsGlobal = false; }; } // namespace entity_extraction