------------------------------------------------------------------------------
| 802 | |
| 803 | //------------------------------------------------------------------------------ |
| 804 | void vtkPointLocator::BuildLocator() |
| 805 | { |
| 806 | // don't rebuild if build time is newer than modified and dataset modified time |
| 807 | if (this->HashTable && this->BuildTime > this->MTime && |
| 808 | this->BuildTime > this->DataSet->GetMTime()) |
| 809 | { |
| 810 | return; |
| 811 | } |
| 812 | // don't rebuild if UseExistingSearchStructure is ON and a search structure already exists |
| 813 | if (this->HashTable && this->UseExistingSearchStructure) |
| 814 | { |
| 815 | this->BuildTime.Modified(); |
| 816 | vtkDebugMacro(<< "BuildLocator exited - UseExistingSearchStructure"); |
| 817 | return; |
| 818 | } |
| 819 | this->BuildLocatorInternal(); |
| 820 | } |
| 821 | |
| 822 | //------------------------------------------------------------------------------ |
| 823 | void vtkPointLocator::ForceBuildLocator() |
no test coverage detected