------------------------------------------------------------------------------ Get the center of the bounding box.
| 269 | //------------------------------------------------------------------------------ |
| 270 | // Get the center of the bounding box. |
| 271 | double* vtkDataSet::GetCenter() |
| 272 | { |
| 273 | this->ComputeBounds(); |
| 274 | for (int i = 0; i < 3; i++) |
| 275 | { |
| 276 | this->Center[i] = (this->Bounds[2 * i + 1] + this->Bounds[2 * i]) / 2.0; |
| 277 | } |
| 278 | return this->Center; |
| 279 | } |
| 280 | |
| 281 | //------------------------------------------------------------------------------ |
| 282 | void vtkDataSet::GetCenter(double center[3]) |