34 #ifndef vtkBSPIntersections_h
35 #define vtkBSPIntersections_h
37 #include "vtkCommonDataModelModule.h"
71 int GetNumberOfRegions();
78 int GetRegionBounds(
int regionID,
double bounds[6]);
86 int GetRegionDataBounds(
int regionID,
double bounds[6]);
93 int IntersectsBox(
int regionId,
double* x);
94 int IntersectsBox(
int regionId,
double x0,
double x1,
double y0,
double y1,
double z0,
double z1);
103 int IntersectsBox(
int* ids,
int len,
double* x);
105 int* ids,
int len,
double x0,
double x1,
double y0,
double y1,
double z0,
double z1);
113 int IntersectsSphere2(
int regionId,
double x,
double y,
double z,
double rSquared);
121 int IntersectsSphere2(
int* ids,
int len,
double x,
double y,
double z,
double rSquared);
129 int IntersectsCell(
int regionId,
vtkCell* cell,
int cellRegion = -1);
138 int IntersectsCell(
int* ids,
int len,
vtkCell* cell,
int cellRegion = -1);
149 vtkGetMacro(ComputeIntersectionsUsingDataBounds,
int);
150 void SetComputeIntersectionsUsingDataBounds(
int c);
151 void ComputeIntersectionsUsingDataBoundsOn();
152 void ComputeIntersectionsUsingDataBoundsOff();
160 int BuildRegionList();
164 double CellBoundsCache[6];
174 static int NumberOfLeafNodes(
vtkKdNode* kd);
175 static void SetIDRanges(
vtkKdNode* kd,
int& min,
int&
max);
179 static void SetCellBounds(
vtkCell* cell,
double* bounds);
181 int IntersectsBox_(
vtkKdNode* node,
int* ids,
int len,
double x0,
double x1,
double y0,
double y1,
182 double z0,
double z1);
184 int IntersectsSphere2_(
185 vtkKdNode* node,
int* ids,
int len,
double x,
double y,
double z,
double rSquared);
187 int IntersectsCell_(
vtkKdNode* node,
int* ids,
int len,
vtkCell* cell,
int cellRegion = -1);
196 int ComputeIntersectionsUsingDataBounds;
void GetBounds(T a, double bds[6])
This class represents a single spatial region in an 3D axis aligned binary spatial partitioning...
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Perform calculations (mostly intersection calculations) on regions of a 3D binary spatial partitionin...
vtkTypeUInt32 vtkMTimeType
This class represents an axis-aligned Binary Spatial Partitioning of a 3D space.
record modification and/or execution time
abstract class to specify cell behavior
a simple class to control print indentation
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkKdNode ** GetRegionList()