Go to the documentation of this file.
41 #ifndef vtkPointLocator_h
42 #define vtkPointLocator_h
49 class vtkNeighborPoints;
86 double radius,
const double x[3],
double& dist2);
88 double inputDataLength,
double& dist2);
131 xyz[0] =
x; xyz[1] =
y; xyz[2] =
z;
208 const int ijk[3],
const int ndivs[3],
int level);
210 const double x[3],
const int ijk[3],
double dist,
213 const double x[3],
double dist,
215 int prevMaxLevel[3]);
represent and manipulate 3D points
vtkIdType InsertionPointId
void GenerateRepresentation(int level, vtkPolyData *pd)
#define vtkGetObjectMacro(name, type)
virtual vtkIdType IsInsertedPoint(double x, double y, double z)=0
void GenerateFace(int face, int i, int j, int k, vtkPoints *pts, vtkCellArray *polys)
virtual void FindClosestNPoints(int N, const double x[3], vtkIdList *result)
#define vtkSetVector3Macro(name, type)
virtual vtkIdType InsertNextPoint(const double x[3])
virtual ~vtkPointLocator()
void GetBucketIndices(const double x[3], int ijk[3])
quickly locate points in 3-space
virtual void FindDistributedPoints(int N, double x, double y, double z, vtkIdList *result, int M)
void GetOverlappingBuckets(vtkNeighborPoints *buckets, const double x[3], const int ijk[3], double dist, int level)
virtual vtkIdType FindClosestPoint(const double x[3])
#define vtkTypeMacro(thisClass, superclass)
virtual vtkIdList * GetPointsInBucket(const double x[3], int ijk[3])
GLint GLint GLint GLint GLint x
void GetBucketNeighbors(vtkNeighborPoints *buckets, const int ijk[3], const int ndivs[3], int level)
#define vtkGetVectorMacro(name, type, count)
int NumberOfPointsPerBucket
virtual void FindDistributedPoints(int N, const double x[3], vtkIdList *result, int M)
#define vtkSetClampMacro(name, type, min, max)
vtkIdType IsInsertedPoint(double x, double y, double z)
a simple class to control print indentation
vtkIdType NumberOfBuckets
object to represent cell connectivity
virtual vtkIdType FindClosestInsertedPoint(const double x[3])
virtual int InitPointInsertion(vtkPoints *newPts, const double bounds[6], vtkIdType estSize)
virtual void FindPointsWithinRadius(double R, const double x[3], vtkIdList *result)
Abstract class in support of both point location and point insertion.
list of point or cell ids
void PrintSelf(ostream &os, vtkIndent indent)
#define vtkGetMacro(name, type)
virtual vtkIdType FindClosestPointWithinRadius(double radius, const double x[3], double &dist2)
static vtkPointLocator * New()
GLint GLint GLint GLint GLint GLint y
void FreeSearchStructure()
concrete dataset represents vertices, lines, polygons, and triangle strips
GLenum GLuint GLint GLenum face
#define VTKCOMMONDATAMODEL_EXPORT
virtual int InsertUniquePoint(const double x[3], vtkIdType &ptId)
double Distance2ToBucket(const double x[3], const int nei[3])
virtual int InitPointInsertion(vtkPoints *newPts, const double bounds[6])
virtual void InsertPoint(vtkIdType ptId, const double x[3])
void GetOverlappingBuckets(vtkNeighborPoints *buckets, const double x[3], double dist, int prevMinLevel[3], int prevMaxLevel[3])
vtkIdType GetBucketIndex(const double x[3])
double Distance2ToBounds(const double x[3], const double bounds[6])
virtual vtkIdType FindClosestPointWithinRadius(double radius, const double x[3], double inputDataLength, double &dist2)
virtual vtkIdType IsInsertedPoint(const double x[3])