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

Method FindCell

Common/DataModel/vtkPointSet.cxx:216–222  ·  view source on GitHub ↗

------------------------------------------------------------------------------ This FindCell() method is based on using a locator (either point or cell). In this application, point locators are typically faster to build and operate on than cell locator, yet do not always produce the correct result. The basic idea is that we find one or more close points to the query point, and we assume that one o

Source from the content-addressed store, hash-verified

214// cell locator strategy should be used. Use subclasses of
215// vtkFindCellStrategy to control the strategies.
216vtkIdType vtkPointSet::FindCell(double x[3], vtkCell* cell, vtkGenericCell* gencell,
217 vtkIdType cellId, double tol2, int& subId, double pcoords[3], double* weights)
218{
219 vtkNew<vtkClosestPointStrategy> strategy;
220 strategy->Initialize(this);
221 return strategy->FindCell(x, cell, gencell, cellId, tol2, subId, pcoords, weights);
222}
223
224//------------------------------------------------------------------------------
225vtkIdType vtkPointSet::FindCell(double x[3], vtkCell* cell, vtkIdType cellId, double tol2,

Callers 10

FindAndGetCellMethod · 0.45
FunctionValuesMethod · 0.45
TestInterpolationFunction · 0.45
DoOrientationTestFunction · 0.45
DoTestFunction · 0.45
runFindCellFunction · 0.45
runAllIntersectsDiagonalFunction · 0.45
TestLocatorToleranceFunction · 0.45
SnapMethod · 0.45

Calls 1

InitializeMethod · 0.45

Tested by 7

TestInterpolationFunction · 0.36
DoOrientationTestFunction · 0.36
DoTestFunction · 0.36
runFindCellFunction · 0.36
runAllIntersectsDiagonalFunction · 0.36
TestLocatorToleranceFunction · 0.36