21#ifndef vtkUniformHyperTreeGrid_h
22#define vtkUniformHyperTreeGrid_h
29#include "vtkCommonDataModelModule.h"
32VTK_ABI_NAMESPACE_BEGIN
187 if (value < (this->Origin[dim] - tol) ||
188 value > (this->Origin[dim] + tol + this->GridScale[dim] * maxIdx))
190 return std::numeric_limits<unsigned int>::max();
193 long idx = std::round((value - this->Origin[dim]) / this->GridScale[dim]);
194 return std::min(std::max(idx, 0l),
static_cast<long>(maxIdx));
213 std::shared_ptr<vtkHyperTreeGridScales>
Scales;
dynamic, self-adjusting array of double
Dynamic generation of scales for vtkHyperTree.
const unsigned int * GetDimensions() const
Get dimensions of this rectilinear grid dataset.
vtkSmartPointer< vtkDataArray > YCoordinates
vtkSmartPointer< vtkDataArray > XCoordinates
vtkSmartPointer< vtkDataArray > ZCoordinates
vtkHyperTreeGrid()
Constructor with default bounds (0,1, 0,1, 0,1).
A data object structured as a tree.
a simple class to control print indentation
@ VTK_UNIFORM_HYPER_TREE_GRID