------------------------------------------------------------------------------ Build the cell locator (if needed)
| 158 | //------------------------------------------------------------------------------ |
| 159 | // Build the cell locator (if needed) |
| 160 | void vtkPointSet::BuildCellLocator() |
| 161 | { |
| 162 | if (!this->Points) |
| 163 | { |
| 164 | return; |
| 165 | } |
| 166 | |
| 167 | if (!this->CellLocator) |
| 168 | { |
| 169 | if (this->Editable || !this->Points->GetData()->HasStandardMemoryLayout()) |
| 170 | { |
| 171 | this->CellLocator = vtkCellLocator::New(); |
| 172 | } |
| 173 | else |
| 174 | { |
| 175 | this->CellLocator = vtkStaticCellLocator::New(); |
| 176 | } |
| 177 | this->CellLocator->SetDataSet(this); |
| 178 | } |
| 179 | else if (this->Points->GetMTime() > this->CellLocator->GetMTime()) |
| 180 | { |
| 181 | this->CellLocator->SetDataSet(this); |
| 182 | } |
| 183 | |
| 184 | this->CellLocator->BuildLocator(); |
| 185 | } |
| 186 | |
| 187 | //------------------------------------------------------------------------------ |
| 188 | vtkIdType vtkPointSet::FindPoint(double x[3]) |
no test coverage detected