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

Method ComputePerformanceFactors

Common/DataModel/vtkPointLocator.cxx:148–163  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Initialize internal performance variables

Source from the content-addressed store, hash-verified

146//------------------------------------------------------------------------------
147// Initialize internal performance variables
148void vtkPointLocator::ComputePerformanceFactors()
149{
150 this->HX = this->H[0];
151 this->HY = this->H[1];
152 this->HZ = this->H[2];
153 this->FX = 1.0 / this->H[0];
154 this->FY = 1.0 / this->H[1];
155 this->FZ = 1.0 / this->H[2];
156 this->BX = this->Bounds[0];
157 this->BY = this->Bounds[2];
158 this->BZ = this->Bounds[4];
159 this->XD = this->Divisions[0];
160 this->YD = this->Divisions[1];
161 this->ZD = this->Divisions[2];
162 this->SliceSize = this->Divisions[0] * this->Divisions[1];
163}
164
165//------------------------------------------------------------------------------
166// Given a position x, return the id of the point closest to it.

Callers 2

BuildLocatorInternalMethod · 0.95
InitPointInsertionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected