------------------------------------------------------------------------------
| 1593 | |
| 1594 | //------------------------------------------------------------------------------ |
| 1595 | void vtkStaticPointLocator::BuildLocator() |
| 1596 | { |
| 1597 | // Short circuit mtime query process in tight loops |
| 1598 | if (this->Static) |
| 1599 | { |
| 1600 | return; |
| 1601 | } |
| 1602 | // don't rebuild if build time is newer than modified and dataset modified time |
| 1603 | if (this->Buckets && this->BuildTime > this->MTime && this->BuildTime > this->DataSet->GetMTime()) |
| 1604 | { |
| 1605 | return; |
| 1606 | } |
| 1607 | // don't rebuild if UseExistingSearchStructure is ON and a search structure already exists |
| 1608 | if (this->Buckets && this->UseExistingSearchStructure) |
| 1609 | { |
| 1610 | this->BuildTime.Modified(); |
| 1611 | vtkDebugMacro(<< "BuildLocator exited - UseExistingSearchStructure"); |
| 1612 | return; |
| 1613 | } |
| 1614 | this->BuildLocatorInternal(); |
| 1615 | } |
| 1616 | |
| 1617 | //------------------------------------------------------------------------------ |
| 1618 | void vtkStaticPointLocator::ForceBuildLocator() |
no test coverage detected