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

Method ComputeBounds

Common/DataModel/vtkDataSet.cxx:172–188  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Compute the data bounding box from data points.

Source from the content-addressed store, hash-verified

170//------------------------------------------------------------------------------
171// Compute the data bounding box from data points.
172void 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:

Callers 3

GetBoundsMethod · 0.95
GetCenterMethod · 0.95
GetLength2Method · 0.95

Calls 8

GetMTimeMethod · 0.95
UninitializeBoundsFunction · 0.85
ForFunction · 0.50
copyFunction · 0.50
GetNumberOfPointsMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected