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

Method BuildLocator

Common/DataModel/vtkIncrementalOctreePointLocator.cxx:491–507  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

489
490//------------------------------------------------------------------------------
491void vtkIncrementalOctreePointLocator::BuildLocator()
492{
493 // don't rebuild if build time is newer than modified and dataset modified time
494 if (this->OctreeRootNode && this->BuildTime > this->MTime &&
495 this->BuildTime > this->DataSet->GetMTime())
496 {
497 return;
498 }
499 // don't rebuild if UseExistingSearchStructure is ON and a search structure already exists
500 if (this->OctreeRootNode && this->UseExistingSearchStructure)
501 {
502 this->BuildTime.Modified();
503 vtkDebugMacro(<< "BuildLocator exited - UseExistingSearchStructure");
504 return;
505 }
506 this->BuildLocatorInternal();
507}
508
509//------------------------------------------------------------------------------
510void vtkIncrementalOctreePointLocator::ForceBuildLocator()

Calls 3

BuildLocatorInternalMethod · 0.95
GetMTimeMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected