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

Method BuildLocator

Common/DataModel/vtkCellLocator.cxx:683–698  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

681
682//------------------------------------------------------------------------------
683void vtkCellLocator::BuildLocator()
684{
685 // don't rebuild if build time is newer than modified and dataset modified time
686 if (this->Tree && this->BuildTime > this->MTime && this->BuildTime > this->DataSet->GetMTime())
687 {
688 return;
689 }
690 // don't rebuild if UseExistingSearchStructure is ON and a search structure already exists
691 if (this->Tree && this->UseExistingSearchStructure)
692 {
693 this->BuildTime.Modified();
694 vtkDebugMacro(<< "BuildLocator exited - UseExistingSearchStructure");
695 return;
696 }
697 this->BuildLocatorInternal();
698}
699
700//------------------------------------------------------------------------------
701void vtkCellLocator::ForceBuildLocator()

Callers 5

IntersectWithLineMethod · 0.95
FindCellMethod · 0.95
FindCellsWithinBoundsMethod · 0.95

Calls 3

BuildLocatorInternalMethod · 0.95
GetMTimeMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected