------------------------------------------------------------------------------
| 390 | |
| 391 | //------------------------------------------------------------------------------ |
| 392 | bool vtkAMRBox::DoesBoxIntersectAlongDimension(const vtkAMRBox& other, int q) const |
| 393 | { |
| 394 | if (this->EmptyDimension(q) && other.EmptyDimension(q)) |
| 395 | { |
| 396 | return true; |
| 397 | } |
| 398 | int minVal = 0; |
| 399 | int maxVal = 0; |
| 400 | minVal = (this->LoCorner[q] < other.LoCorner[q]) ? other.LoCorner[q] : this->LoCorner[q]; |
| 401 | maxVal = (this->HiCorner[q] > other.HiCorner[q]) ? other.HiCorner[q] : this->HiCorner[q]; |
| 402 | |
| 403 | return minVal < maxVal; |
| 404 | } |
| 405 | |
| 406 | bool vtkAMRBox::DoesIntersect(const vtkAMRBox& other) const |
| 407 | { |