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

Method BuildLocator

Filters/FlowPaths/vtkModifiedBSPTree.cxx:103–119  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

101
102//------------------------------------------------------------------------------
103void vtkModifiedBSPTree::BuildLocator()
104{
105 // don't rebuild if build time is newer than modified and dataset modified time
106 if (this->mRoot.get() && this->BuildTime > this->MTime &&
107 this->BuildTime > this->DataSet->GetMTime())
108 {
109 return;
110 }
111 // don't rebuild if UseExistingSearchStructure is ON and a search structure already exists
112 if (this->mRoot.get() && this->UseExistingSearchStructure)
113 {
114 this->BuildTime.Modified();
115 vtkDebugMacro(<< "BuildLocator exited - UseExistingSearchStructure");
116 return;
117 }
118 this->BuildLocatorInternal();
119}
120
121//------------------------------------------------------------------------------
122void vtkModifiedBSPTree::ForceBuildLocator()

Callers 9

IntersectWithLineMethod · 0.95
FindCellMethod · 0.95
AddDataSetMethod · 0.45
TestBSPTreeFunction · 0.45
TestCellLocatorsFunction · 0.45

Calls 4

BuildLocatorInternalMethod · 0.95
getMethod · 0.45
GetMTimeMethod · 0.45
ModifiedMethod · 0.45

Tested by 3

TestBSPTreeFunction · 0.36
TestCellLocatorsFunction · 0.36