------------------------------------------------------------------------------
| 68 | |
| 69 | //------------------------------------------------------------------------------ |
| 70 | void vtkKdTreePointLocator::BuildLocator() |
| 71 | { |
| 72 | // don't rebuild if build time is newer than modified and dataset modified time |
| 73 | if (this->KdTree && this->BuildTime > this->MTime && this->BuildTime > this->DataSet->GetMTime()) |
| 74 | { |
| 75 | return; |
| 76 | } |
| 77 | // don't rebuild if UseExistingSearchStructure is ON and a search structure already exists |
| 78 | if (this->KdTree && this->UseExistingSearchStructure) |
| 79 | { |
| 80 | this->BuildTime.Modified(); |
| 81 | vtkDebugMacro(<< "BuildLocator exited - UseExistingSearchStructure"); |
| 82 | return; |
| 83 | } |
| 84 | this->BuildLocatorInternal(); |
| 85 | } |
| 86 | |
| 87 | //------------------------------------------------------------------------------ |
| 88 | void vtkKdTreePointLocator::ForceBuildLocator() |
no test coverage detected