------------------------------------------------------------------------------
| 101 | |
| 102 | //------------------------------------------------------------------------------ |
| 103 | void vtkModifiedBSPTree::BuildLocator() |
| 104 | { |
| 105 | // don't rebuild if build time is newer than modified and dataset modified time |
| 106 | if (this->mRoot.get() && this->BuildTime > this->MTime && |
| 107 | this->BuildTime > this->DataSet->GetMTime()) |
| 108 | { |
| 109 | return; |
| 110 | } |
| 111 | // don't rebuild if UseExistingSearchStructure is ON and a search structure already exists |
| 112 | if (this->mRoot.get() && this->UseExistingSearchStructure) |
| 113 | { |
| 114 | this->BuildTime.Modified(); |
| 115 | vtkDebugMacro(<< "BuildLocator exited - UseExistingSearchStructure"); |
| 116 | return; |
| 117 | } |
| 118 | this->BuildLocatorInternal(); |
| 119 | } |
| 120 | |
| 121 | //------------------------------------------------------------------------------ |
| 122 | void vtkModifiedBSPTree::ForceBuildLocator() |