------------------------------------------------------------------------------ Compute the data bounding box from data points.
| 170 | //------------------------------------------------------------------------------ |
| 171 | // Compute the data bounding box from data points. |
| 172 | void vtkDataSet::ComputeBounds() |
| 173 | { |
| 174 | if (this->GetMTime() > this->ComputeTime) |
| 175 | { |
| 176 | if (this->GetNumberOfPoints()) |
| 177 | { |
| 178 | ComputeBoundsFunctor functor(this); |
| 179 | vtkSMPTools::For(0, this->GetNumberOfPoints(), functor); |
| 180 | std::copy(functor.Bounds.begin(), functor.Bounds.end(), this->Bounds); |
| 181 | } |
| 182 | else |
| 183 | { |
| 184 | vtkMath::UninitializeBounds(this->Bounds); |
| 185 | } |
| 186 | this->ComputeTime.Modified(); |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | //------------------------------------------------------------------------------ |
| 191 | // Description: |
no test coverage detected