MCPcopy Create free account
hub / github.com/Kitware/VTK / BuildLocator

Method BuildLocator

Common/DataModel/vtkPointLocator.cxx:804–820  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

802
803//------------------------------------------------------------------------------
804void 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//------------------------------------------------------------------------------
823void vtkPointLocator::ForceBuildLocator()

Callers 5

FindClosestPointMethod · 0.95
FindDistributedPointsMethod · 0.95
FindClosestNPointsMethod · 0.95

Calls 3

BuildLocatorInternalMethod · 0.95
GetMTimeMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected