128#ifndef vtkModifiedBSPTree_h
129#define vtkModifiedBSPTree_h
132#include "vtkFiltersFlowPathsModule.h"
137VTK_ABI_NAMESPACE_BEGIN
138class Sorted_cell_extents_Lists;
171 int IntersectWithLine(
const double p1[3],
const double p2[3],
double tol,
double& t,
double x[3],
194 double pcoords[3],
double* weights)
override;
234 std::shared_ptr<std::vector<vtkIdType>>
Leaves;
243 std::vector<uint8_t>& cellPart);
254#ifndef DOXYGEN_SHOULD_SKIP_THIS
262 mChild[0] = mChild[1] = mChild[2] =
nullptr;
263 for (
int i = 0; i < 3; i++)
272 for (
int i = 0; i < 3; i++)
278 void setMin(
double minx,
double miny,
double minz)
285 void setMax(
double maxx,
double maxy,
double maxz)
292 bool Inside(
double point[3])
const;
314 void Classify(
const double origin[3],
const double dir[3],
double& rDist, BSPNode*& Near,
315 BSPNode*& Mid, BSPNode*& Far)
const;
316 friend class vtkModifiedBSPTree;
319 static int VTKFILTERSFLOWPATHS_EXPORT getDominantAxis(
const double dir[3]);
vtkIdType FindCell(double x[3])
Returns the Id of the cell containing the point, returns -1 if no cell found.
void FindCellsAlongLine(const double p1[3], const double p2[3], double tol, vtkIdList *cells)
Take the passed line segment and intersect it with the data set.
virtual int IntersectWithLine(const double p1[3], const 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.
vtkAbstractCellLocator()
Find the cell containing a given point.
abstract class to specify dataset behavior
provides thread-safe access to cells
maintain an ordered list of IdList objects
list of point or cell ids
a simple class to control print indentation
int IntersectWithLine(const double p1[3], const double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId, vtkIdType &cellId, vtkGenericCell *cell) override
Return intersection point (if any) AND the cell which was intersected by the finite line.
void ShallowCopy(vtkAbstractCellLocator *locator) override
Shallow copy of a vtkModifiedBSPTree.
std::shared_ptr< BSPNode > mRoot
void GenerateRepresentation(int level, vtkPolyData *pd) override
Satisfy vtkLocator abstract interface.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to print and obtain type-related information.
vtkIdListCollection * GetLeafNodeCellInformation()
After subdivision has completed, one may wish to query the tree to find which cells are in which leaf...
std::shared_ptr< std::vector< vtkIdType > > Leaves
void BuildLocatorInternal() override
This function is not pure virtual to maintain backwards compatibility.
void ForceBuildLocator() override
Satisfy vtkLocator abstract interface.
virtual void GenerateRepresentationLeafs(vtkPolyData *pd)
Generate BBox representation of all leaf nodes.
void Subdivide(BSPNode *node, Sorted_cell_extents_Lists *lists, vtkDataSet *dataSet, vtkIdType nCells, int depth, int maxlevel, vtkIdType maxCells, int &MaxDepth, std::vector< uint8_t > &cellPart)
void FreeSearchStructure() override
Satisfy vtkLocator abstract interface.
void BuildLocator() override
Satisfy vtkLocator abstract interface.
static vtkModifiedBSPTree * New()
Construct with maximum 32 cells per node.
vtkIdType FindCell(double x[3], double tol2, vtkGenericCell *GenCell, int &subId, double pcoords[3], double *weights) override
Find the cell containing a given point.
represent and manipulate 3D points
concrete dataset represents vertices, lines, polygons, and triangle strips