------------------------------------------------------------------------------
| 278 | |
| 279 | //------------------------------------------------------------------------------ |
| 280 | int vtkBoundingBox::Contains(const vtkBoundingBox& bbox) const |
| 281 | { |
| 282 | // if either box is not valid or they don't intersect |
| 283 | if (!this->Intersects(bbox)) |
| 284 | { |
| 285 | return 0; |
| 286 | } |
| 287 | const double* pt = bbox.GetMinPoint(); |
| 288 | if (!this->ContainsPoint(pt[0], pt[1], pt[2])) |
| 289 | { |
| 290 | return 0; |
| 291 | } |
| 292 | pt = bbox.GetMaxPoint(); |
| 293 | if (!this->ContainsPoint(pt[0], pt[1], pt[2])) |
| 294 | { |
| 295 | return 0; |
| 296 | } |
| 297 | return 1; |
| 298 | } |
| 299 | |
| 300 | //------------------------------------------------------------------------------ |
| 301 | bool vtkBoundingBox::ContainsLine(const double x[3], const double s[3], const double lineEnd[3], |
nothing calls this directly
no test coverage detected