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

Method ComputeBasis

Filters/Points/vtkGeneralizedKernel.cxx:26–38  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

24
25//------------------------------------------------------------------------------
26vtkIdType vtkGeneralizedKernel::ComputeBasis(double x[3], vtkIdList* pIds, vtkIdType)
27{
28 if (this->KernelFootprint == vtkGeneralizedKernel::RADIUS)
29 {
30 this->Locator->FindPointsWithinRadius(this->Radius, x, pIds);
31 }
32 else
33 {
34 this->Locator->FindClosestNPoints(this->NumberOfPoints, x, pIds);
35 }
36
37 return pIds->GetNumberOfIds();
38}
39
40//------------------------------------------------------------------------------
41void vtkGeneralizedKernel::PrintSelf(ostream& os, vtkIndent indent)

Callers

nothing calls this directly

Calls 3

FindClosestNPointsMethod · 0.45
GetNumberOfIdsMethod · 0.45

Tested by

no test coverage detected