------------------------------------------------------------------------------
| 129 | |
| 130 | //------------------------------------------------------------------------------ |
| 131 | void vtkPointSet::BuildPointLocator() |
| 132 | { |
| 133 | if (!this->Points) |
| 134 | { |
| 135 | return; |
| 136 | } |
| 137 | |
| 138 | if (!this->PointLocator) |
| 139 | { |
| 140 | if (this->Editable || !this->Points->GetData()->HasStandardMemoryLayout()) |
| 141 | { |
| 142 | this->PointLocator = vtkPointLocator::New(); |
| 143 | } |
| 144 | else |
| 145 | { |
| 146 | this->PointLocator = vtkStaticPointLocator::New(); |
| 147 | } |
| 148 | this->PointLocator->SetDataSet(this); |
| 149 | } |
| 150 | else if (this->Points->GetMTime() > this->PointLocator->GetMTime()) |
| 151 | { |
| 152 | this->PointLocator->SetDataSet(this); |
| 153 | } |
| 154 | |
| 155 | this->PointLocator->BuildLocator(); |
| 156 | } |
| 157 | |
| 158 | //------------------------------------------------------------------------------ |
| 159 | // Build the cell locator (if needed) |
no test coverage detected