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

Method FindPoint

Common/DataModel/vtkPointSet.cxx:188–201  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

186
187//------------------------------------------------------------------------------
188vtkIdType vtkPointSet::FindPoint(double x[3])
189{
190 if (!this->Points)
191 {
192 return -1;
193 }
194
195 if (!this->PointLocator)
196 {
197 this->BuildPointLocator();
198 }
199
200 return this->PointLocator->FindClosestPoint(x);
201}
202
203//------------------------------------------------------------------------------
204// This FindCell() method is based on using a locator (either point or

Callers

nothing calls this directly

Calls 2

BuildPointLocatorMethod · 0.95
FindClosestPointMethod · 0.45

Tested by

no test coverage detected