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

Method BuildLocator

Common/DataModel/vtkKdTreePointLocator.cxx:70–85  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

68
69//------------------------------------------------------------------------------
70void vtkKdTreePointLocator::BuildLocator()
71{
72 // don't rebuild if build time is newer than modified and dataset modified time
73 if (this->KdTree && this->BuildTime > this->MTime && this->BuildTime > this->DataSet->GetMTime())
74 {
75 return;
76 }
77 // don't rebuild if UseExistingSearchStructure is ON and a search structure already exists
78 if (this->KdTree && this->UseExistingSearchStructure)
79 {
80 this->BuildTime.Modified();
81 vtkDebugMacro(<< "BuildLocator exited - UseExistingSearchStructure");
82 return;
83 }
84 this->BuildLocatorInternal();
85}
86
87//------------------------------------------------------------------------------
88void vtkKdTreePointLocator::ForceBuildLocator()

Callers 5

FindClosestPointMethod · 0.95
FindClosestNPointsMethod · 0.95

Calls 3

BuildLocatorInternalMethod · 0.95
GetMTimeMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected