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

Method ComputeBounds

Testing/GenericBridge/vtkBridgeDataSet.cxx:477–494  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Compute the geometry bounding box.

Source from the content-addressed store, hash-verified

475// Description:
476// Compute the geometry bounding box.
477void vtkBridgeDataSet::ComputeBounds()
478{
479 if (this->GetMTime() > this->ComputeTime)
480 {
481 if (this->Implementation != nullptr)
482 {
483 this->Implementation->ComputeBounds();
484 this->ComputeTime.Modified();
485 const double* bounds = this->Implementation->GetBounds();
486 memcpy(this->Bounds, bounds, sizeof(double) * 6);
487 }
488 else
489 {
490 vtkMath::UninitializeBounds(this->Bounds);
491 }
492 this->ComputeTime.Modified();
493 }
494}
495VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 4

GetMTimeMethod · 0.95
UninitializeBoundsFunction · 0.85
ModifiedMethod · 0.45
GetBoundsMethod · 0.45

Tested by

no test coverage detected