Go to the documentation of this file.
146 #ifndef vtkModifiedBSPTree_h
147 #define vtkModifiedBSPTree_h
149 #include "vtkFiltersFlowPathsModule.h"
153 class Sorted_cell_extents_Lists;
196 virtual void GenerateRepresentationLeafs(
vtkPolyData *pd);
203 double p1[3],
double p2[3],
double tol,
double &t,
double x[3],
204 double pcoords[3],
int &subId,
vtkIdType &cellId);
211 double p1[3],
double p2[3],
double tol,
double &t,
double x[3],
223 const double p1[3],
const double p2[3],
const double tol,
231 double pcoords[3],
double *weights);
253 void Subdivide(
BSPNode *node, Sorted_cell_extents_Lists *lists,
vtkDataSet *dataSet,
260 virtual int IntersectCellInternal(
vtkIdType cell_ID,
const double p1[3],
const double p2[3],
261 const double tol,
double &t,
double ipt[3],
double pcoords[3],
int &subId);
263 void BuildLocatorIfNeeded();
264 void ForceBuildLocator();
265 void BuildLocatorInternal();
275 #ifndef DOXYGEN_SHOULD_SKIP_THIS
287 for (
int i=0; i<3; i++)
delete mChild[i];
291 void setMin(
double minx,
double miny,
double minz) {
295 void setMax(
double maxx,
double maxy,
double maxz) {
314 void Classify(
const double origin[3],
const double dir[3],
318 double &rTmin,
double &rTmax)
const;
323 static bool VTKFILTERSFLOWPATHS_EXPORT
RayMinMaxT(
324 const double bounds[6],
const double origin[3],
const double dir[3],
double &rTmin,
double &rTmax);
represent and manipulate 3D points
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int IntersectWithLine(double p1[3], double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId)
Return intersection point (if any) of finite line with cells contained in cell locator.
void setMax(double maxx, double maxy, double maxz)
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
virtual vtkIdType FindCell(double x[3])
Returns the Id of the cell containing the point, returns -1 if no cell found.
void Classify(const double origin[3], const double dir[3], double &rDist, BSPNode *&Near, BSPNode *&Mid, BSPNode *&Far) const
void setMin(double minx, double miny, double minz)
vtkIdType * sorted_cell_lists[6]
bool Inside(double point[3]) const
virtual void GenerateRepresentation(int level, vtkPolyData *pd)=0
Method to build a representation at a particular level.
virtual bool InsideCellBounds(double x[3], vtkIdType cell_ID)
Quickly test if a point is inside the bounds of a particular cell.
a simple class to control print indentation
list of point or cell ids
virtual void BuildLocator()=0
Build the locator from the input dataset.
maintain an unordered list of dataarray objects
an abstract base class for locators which find cells
abstract class to specify dataset behavior
bool RayMinMaxT(const double origin[3], const double dir[3], double &rTmin, double &rTmax) const
concrete dataset represents vertices, lines, polygons, and triangle strips
static int VTKFILTERSFLOWPATHS_EXPORT getDominantAxis(const double dir[3])
provides thread-safe access to cells
Generate axis aligned BBox tree for raycasting and other Locator based searches.
friend class vtkParticleBoxTree
virtual void FreeSearchStructure()=0
Free the memory required for the spatial data structure.