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 mutable std::shared_ptr<vtkHyperTreeGridScales>
Scales;
dynamic, self-adjusting array of double
A specifalized type of vtkHyperTreeGrid for the case when root cells have uniform sizes in each direc...
const unsigned int * GetDimensions() const
Get dimensions of this rectilinear grid dataset.
vtkDataArray * ZCoordinates
vtkDataArray * YCoordinates
vtkHyperTreeGrid()
Constructor with default bounds (0,1, 0,1, 0,1).
vtkDataArray * XCoordinates
A data object structured as a tree.
a simple class to control print indentation
#define VTK_UNIFORM_HYPER_TREE_GRID