------------------------------------------------------------------------------ Make sure the length of all sides of the bounding box are non-zero, and at least 2*delta thick.
| 183 | // Make sure the length of all sides of the bounding box are non-zero, and at |
| 184 | // least 2*delta thick. |
| 185 | void vtkBoundingBox::InflateSlice(double delta) |
| 186 | { |
| 187 | for (auto i = 0; i < 3; ++i) |
| 188 | { |
| 189 | double w = this->MaxPnt[i] - this->MinPnt[i]; |
| 190 | if (w < (2.0 * delta)) |
| 191 | { |
| 192 | this->MinPnt[i] -= delta; |
| 193 | this->MaxPnt[i] += delta; |
| 194 | } |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | //------------------------------------------------------------------------------ |
| 199 | int vtkBoundingBox::IntersectBox(const vtkBoundingBox& bbox) |