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

Method BuildLocator

Common/DataModel/vtkKdTree.cxx:747–762  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Build the kdtree structure based on location of cell centroids.

Source from the content-addressed store, hash-verified

745//------------------------------------------------------------------------------
746// Build the kdtree structure based on location of cell centroids.
747void vtkKdTree::BuildLocator()
748{
749 // don't rebuild if build time is newer than modified and dataset modified time
750 if (this->Top && this->BuildTime > this->MTime && this->NewGeometry() == 0)
751 {
752 return;
753 }
754 // don't rebuild if UseExistingSearchStructure is ON and a search structure already exists
755 if (this->Top && this->UseExistingSearchStructure)
756 {
757 this->BuildTime.Modified();
758 vtkDebugMacro(<< "BuildLocator exited - UseExistingSearchStructure");
759 return;
760 }
761 this->BuildLocatorInternal();
762}
763
764//------------------------------------------------------------------------------
765void vtkKdTree::ForceBuildLocator()

Callers 15

InitializeMethod · 0.45
InternalUpdateMethod · 0.45
InitializeMethod · 0.45
ConstructLocatorMethod · 0.45
BuildPointLocatorMethod · 0.45
BuildCellLocatorMethod · 0.45
StartPassMethod · 0.45
UpdateMethod · 0.45

Calls 3

NewGeometryMethod · 0.95
BuildLocatorInternalMethod · 0.95
ModifiedMethod · 0.45

Tested by 10

TestFindCellsAlongLineFunction · 0.36
TestCellLocatorFunction · 0.36
TestLocatorFunction · 0.36
TestStaticCellLocatorFunction · 0.36
DataSetPointMapperMethod · 0.36