------------------------------------------------------------------------------
| 92 | |
| 93 | //------------------------------------------------------------------------------ |
| 94 | void vtkPointSet::ComputeBounds() |
| 95 | { |
| 96 | if (this->Points) |
| 97 | { |
| 98 | // only depends on tyhis->Points so only check this->Points mtime |
| 99 | // The generic mtime check includes Field/Cell/PointData also |
| 100 | // which has no impact on the bounds |
| 101 | if (this->Points->GetMTime() >= this->ComputeTime) |
| 102 | { |
| 103 | const double* bounds = this->Points->GetBounds(); |
| 104 | for (int i = 0; i < 6; i++) |
| 105 | { |
| 106 | this->Bounds[i] = bounds[i]; |
| 107 | } |
| 108 | this->ComputeTime.Modified(); |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | //------------------------------------------------------------------------------ |
| 114 | vtkMTimeType vtkPointSet::GetMTime() |