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

Method BuildPointLocator

Common/DataModel/vtkPointSet.cxx:131–156  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

129
130//------------------------------------------------------------------------------
131void vtkPointSet::BuildPointLocator()
132{
133 if (!this->Points)
134 {
135 return;
136 }
137
138 if (!this->PointLocator)
139 {
140 if (this->Editable || !this->Points->GetData()->HasStandardMemoryLayout())
141 {
142 this->PointLocator = vtkPointLocator::New();
143 }
144 else
145 {
146 this->PointLocator = vtkStaticPointLocator::New();
147 }
148 this->PointLocator->SetDataSet(this);
149 }
150 else if (this->Points->GetMTime() > this->PointLocator->GetMTime())
151 {
152 this->PointLocator->SetDataSet(this);
153 }
154
155 this->PointLocator->BuildLocator();
156}
157
158//------------------------------------------------------------------------------
159// Build the cell locator (if needed)

Callers 6

FindPointMethod · 0.95
InitializeMethod · 0.80
BuildLocatorFunction · 0.80
CreateLocatorsMethod · 0.80
BuildLocatorMethod · 0.80

Calls 6

NewFunction · 0.50
GetDataMethod · 0.45
SetDataSetMethod · 0.45
GetMTimeMethod · 0.45
BuildLocatorMethod · 0.45

Tested by

no test coverage detected