------------------------------------------------------------------------------
| 681 | |
| 682 | //------------------------------------------------------------------------------ |
| 683 | void vtkCellLocator::BuildLocator() |
| 684 | { |
| 685 | // don't rebuild if build time is newer than modified and dataset modified time |
| 686 | if (this->Tree && this->BuildTime > this->MTime && this->BuildTime > this->DataSet->GetMTime()) |
| 687 | { |
| 688 | return; |
| 689 | } |
| 690 | // don't rebuild if UseExistingSearchStructure is ON and a search structure already exists |
| 691 | if (this->Tree && this->UseExistingSearchStructure) |
| 692 | { |
| 693 | this->BuildTime.Modified(); |
| 694 | vtkDebugMacro(<< "BuildLocator exited - UseExistingSearchStructure"); |
| 695 | return; |
| 696 | } |
| 697 | this->BuildLocatorInternal(); |
| 698 | } |
| 699 | |
| 700 | //------------------------------------------------------------------------------ |
| 701 | void vtkCellLocator::ForceBuildLocator() |
no test coverage detected