| 37 | } |
| 38 | |
| 39 | void vtkCellGridBoundsQuery::AddBounds(vtkBoundingBox& bbox) |
| 40 | { |
| 41 | // Ignore invalid bounds: |
| 42 | if (!bbox.IsValid()) |
| 43 | { |
| 44 | return; |
| 45 | } |
| 46 | // If the current local bounds are well-defined, then add them to the bbox: |
| 47 | if (this->Bounds[0] <= this->Bounds[1]) |
| 48 | { |
| 49 | bbox.AddPoint(this->Bounds[0], this->Bounds[2], this->Bounds[4]); |
| 50 | bbox.AddPoint(this->Bounds[1], this->Bounds[3], this->Bounds[5]); |
| 51 | } |
| 52 | // Now copy bbox into our local storage: |
| 53 | bbox.GetBounds(this->Bounds.data()); |
| 54 | } |
| 55 | |
| 56 | VTK_ABI_NAMESPACE_END |