| 289 | { |
| 290 | private: |
| 291 | struct Bucket |
| 292 | { |
| 293 | double Min; |
| 294 | double Max; |
| 295 | T Cnt; |
| 296 | |
| 297 | Bucket() |
| 298 | : Min(VTK_DOUBLE_MAX) |
| 299 | , Max(-VTK_DOUBLE_MAX) |
| 300 | , Cnt(0) |
| 301 | { |
| 302 | } |
| 303 | |
| 304 | void Add(const double& min, const double& max) |
| 305 | { |
| 306 | ++this->Cnt; |
| 307 | this->Min = std::min(min, this->Min); |
| 308 | this->Max = std::max(max, this->Max); |
| 309 | } |
| 310 | }; |
| 311 | |
| 312 | struct CellInfo |
| 313 | { |