20 #ifndef vtkClosestPointStrategy_h
21 #define vtkClosestPointStrategy_h
24 #include "vtkCommonDataModelModule.h"
31 VTK_ABI_NAMESPACE_BEGIN
64 double tol2,
int& subId,
double pcoords[3],
double* weights)
override;
129 self->GetCell(cellId, gencell);
134 cell =
self->GetCell(cellId);
140 VTK_ABI_NAMESPACE_END
vtkNew< vtkIdList > Neighbors
vtkNew< vtkIdList > NearPointIds
virtual bool InsideCellBounds(double x[3], vtkIdType cellId)=0
Quickly test if a point is inside the bounds of a particular cell.
virtual vtkIdType FindClosestPointWithinRadius(double x[3], double radius, double closestPoint[3], vtkGenericCell *cell, vtkIdType &cellId, int &subId, double &dist2, int &inside)=0
Return the closest point within a specified radius and the cell which is closest to the point x...
vtkNew< vtkIdList > VisitedCellIds
virtual void CopyParameters(vtkFindCellStrategy *from)
Copy essential parameters between instances of this class.
implement a specific vtkPointSet::FindCell() strategy based on closest point
concrete class for storing a set of points
virtual int Initialize(vtkPointSet *ps)
All subclasses of this class must provide an initialize method.
vtkCell * SelectCell(vtkPointSet *self, vtkIdType cellId, vtkCell *cell, vtkGenericCell *gencell)
Subclasses use this method to select the current cell.
provides thread-safe access to cells
helper class to manage the vtkPointSet::FindCell() METHOD
abstract class to specify cell behavior
a simple class to control print indentation
abstract class to quickly locate points in 3-space
list of point or cell ids
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
virtual vtkIdType FindCell(double x[3], vtkCell *cell, vtkGenericCell *gencell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights)=0
Virtual method for finding a cell.
std::vector< unsigned char > VisitedCells
vtkNew< vtkIdList > CellIds
vtkAbstractPointLocator * PointLocator
std::vector< double > Weights
vtkNew< vtkIdList > PointIds
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...