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

Method ComputeBounds

Common/DataModel/vtkPointSet.cxx:94–111  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

92
93//------------------------------------------------------------------------------
94void 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//------------------------------------------------------------------------------
114vtkMTimeType vtkPointSet::GetMTime()

Callers

nothing calls this directly

Calls 3

GetMTimeMethod · 0.45
GetBoundsMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected