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

Method BuildLocator

Common/DataModel/vtkOctreePointLocator.cxx:279–294  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

277
278//------------------------------------------------------------------------------
279void vtkOctreePointLocator::BuildLocator()
280{
281 // don't rebuild if build time is newer than modified and dataset modified time
282 if (this->Top && this->BuildTime > this->MTime && this->BuildTime > this->DataSet->GetMTime())
283 {
284 return;
285 }
286 // don't rebuild if UseExistingSearchStructure is ON and a search structure already exists
287 if (this->Top && this->UseExistingSearchStructure)
288 {
289 this->BuildTime.Modified();
290 vtkDebugMacro(<< "BuildLocator exited - UseExistingSearchStructure");
291 return;
292 }
293 this->BuildLocatorInternal();
294}
295
296//------------------------------------------------------------------------------
297void vtkOctreePointLocator::ForceBuildLocator()

Callers 5

FindClosestPointMethod · 0.95
FindClosestNPointsMethod · 0.95
FindPointsInAreaMethod · 0.95

Calls 3

BuildLocatorInternalMethod · 0.95
GetMTimeMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected