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

Method GetCenter

Common/DataModel/vtkHyperTreeGrid.cxx:1742–1749  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1740
1741//------------------------------------------------------------------------------
1742double* vtkHyperTreeGrid::GetCenter()
1743{
1744 double* bds = this->GetBounds();
1745 this->Center[0] = bds[0] + (bds[1] - bds[0]) / 2.0;
1746 this->Center[1] = bds[2] + (bds[3] - bds[2]) / 2.0;
1747 this->Center[2] = bds[4] + (bds[5] - bds[4]) / 2.0;
1748 return this->Center;
1749}
1750
1751//------------------------------------------------------------------------------
1752void vtkHyperTreeGrid::GetCenter(double* octr)

Callers

nothing calls this directly

Calls 1

GetBoundsMethod · 0.95

Tested by

no test coverage detected