| 404 | } |
| 405 | |
| 406 | bool vtkAMRBox::DoesIntersect(const vtkAMRBox& other) const |
| 407 | { |
| 408 | assert("pre: AMR Box instance is invalid" && !this->IsInvalid()); |
| 409 | if (this->Empty()) |
| 410 | { |
| 411 | return false; |
| 412 | } |
| 413 | if (other.Empty()) |
| 414 | { |
| 415 | return false; |
| 416 | } |
| 417 | if (!this->DoesBoxIntersectAlongDimension(other, 0) || |
| 418 | !this->DoesBoxIntersectAlongDimension(other, 1) || |
| 419 | !this->DoesBoxIntersectAlongDimension(other, 2)) |
| 420 | { |
| 421 | return false; |
| 422 | } |
| 423 | return true; |
| 424 | } |
| 425 | |
| 426 | int vtkAMRBox::ComputeStructuredCoordinates(const vtkAMRBox& box, const double dataOrigin[3], |
| 427 | const double h[3], const double x[3], int ijk[3], double pcoords[3]) |
no test coverage detected