MCPcopy Create free account
hub / github.com/Kitware/VTK / Execute

Method Execute

Common/ExecutionModel/vtkSphereTree.cxx:317–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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//------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 4

ForFunction · 0.50
GetNumberOfCellsMethod · 0.45
GetCellBoundsMethod · 0.45
GetBoundsMethod · 0.45

Tested by

no test coverage detected