------------------------------------------------------------------------------ Initialize internal performance variables
| 146 | //------------------------------------------------------------------------------ |
| 147 | // Initialize internal performance variables |
| 148 | void 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. |
no outgoing calls
no test coverage detected