| 315 | } |
| 316 | |
| 317 | static void Execute(vtkIdType numCells, vtkDataSet* ds, double* s, |
| 318 | bool vtkNotUsed(computeBoundsAndRadius), double& aveRadius, double sphereBounds[6]) |
| 319 | { |
| 320 | if (ds->GetNumberOfCells() > 0 && numCells <= ds->GetNumberOfCells()) |
| 321 | { |
| 322 | // Dummy call to GetCellBounds to enable its uses in the threaded code |
| 323 | double dummy[6]; |
| 324 | ds->GetCellBounds(0, dummy); |
| 325 | |
| 326 | DataSetSpheres spheres(ds, s); |
| 327 | vtkSMPTools::For(0, numCells, spheres); |
| 328 | aveRadius = spheres.AverageRadius; |
| 329 | spheres.GetBounds(sphereBounds); |
| 330 | } |
| 331 | } |
| 332 | }; |
| 333 | |
| 334 | //------------------------------------------------------------------------------ |
nothing calls this directly
no test coverage detected