103#ifndef vtkKdTreePointLocator_h
104#define vtkKdTreePointLocator_h
107#include "vtkCommonDataModelModule.h"
111VTK_ABI_NAMESPACE_BEGIN
166 double minDist2 = -0.1,
bool sort =
true,
vtkDoubleArray* petals =
nullptr)
override;
176 double maxDist2,
bool sort =
true,
vtkDoubleArray* petals =
nullptr)
override;
vtkAbstractPointLocator()
dynamic, self-adjusting array of double
list of point or cell ids
a simple class to control print indentation
void FindClosestNPoints(int N, const double x[3], vtkIdList *result) override
Find the closest N points to a position.
void BuildLocatorInternal() override
This function is not pure virtual to maintain backwards compatibility.
vtkIdType FindClosestPointWithinRadius(double radius, const double x[3], double &dist2) override
Given a position x and a radius r, return the id of the point closest to the point in that radius.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard type and print methods.
std::unique_ptr< vtkInternals > Internals
void GenerateRepresentation(int level, vtkPolyData *pd) override
See vtkLocator interface documentation.
double FindNPointsInShell(int N, const double x[3], vtkDist2TupleArray &results, double minDist2=-0.1, bool sort=true, vtkDoubleArray *petals=nullptr) override
Find the N nearest points which are strictly greater than minDist2 away from the query point x,...
~vtkKdTreePointLocator() override
void ForceBuildLocator() override
See vtkLocator interface documentation.
int NumberOfPointsPerLeaf
void FindPointsInShell(const double x[3], vtkDist2TupleArray &results, double minDist2, double maxDist2, bool sort=true, vtkDoubleArray *petals=nullptr) override
Find all the points which are strictly greater than minDist2 and at most maxDist2 away from the query...
void FindPointsWithinRadius(double R, const double x[3], vtkIdList *result) override
Find all points within a specified radius R of position x.
int GetDimension()
Return the dimension of the kd-tree: 2 when all the points are in a plane of constant z,...
void BuildLocator() override
See vtkLocator interface documentation.
vtkIdType FindClosestPoint(const double x[3]) override
Given a position x, return the id of the point closest to it.
void FreeSearchStructure() override
See vtkLocator interface documentation.
static vtkKdTreePointLocator * New()
concrete dataset represents vertices, lines, polygons, and triangle strips
Represent an array of vtkDist2Tuples.