33 #ifndef vtkBSPIntersections_h
34 #define vtkBSPIntersections_h
60 int GetBounds(
double *bounds);
64 int GetNumberOfRegions();
69 int GetRegionBounds(
int regionID,
double bounds[6]);
74 int GetRegionDataBounds(
int regionID,
double bounds[6]);
79 int IntersectsBox(
int regionId,
double *x);
80 int IntersectsBox(
int regionId,
double xmin,
double xmax,
81 double ymin,
double ymax,
82 double zmin,
double zmax);
88 int IntersectsBox(
int *ids,
int len,
double *x);
89 int IntersectsBox(
int *ids,
int len,
double x0,
double x1,
90 double y0,
double y1,
double z0,
double z1);
96 int IntersectsSphere2(
int regionId,
97 double x,
double y,
double z,
double rSquared);
104 int IntersectsSphere2(
int *ids,
int len,
105 double x,
double y,
double z,
double rSquared);
112 int IntersectsCell(
int regionId,
vtkCell *cell,
int cellRegion=-1);
118 int IntersectsCell(
int *ids,
int len,
vtkCell *cell,
int cellRegion=-1);
127 vtkGetMacro(ComputeIntersectionsUsingDataBounds,
int);
128 void SetComputeIntersectionsUsingDataBounds(
int c);
129 void ComputeIntersectionsUsingDataBoundsOn();
130 void ComputeIntersectionsUsingDataBoundsOff();
137 vtkGetMacro(RegionListBuildTime,
unsigned long);
139 int BuildRegionList();
143 double CellBoundsCache[6];
155 static int NumberOfLeafNodes(
vtkKdNode *kd);
156 static void SetIDRanges(
vtkKdNode *kd,
int &min,
int &
max);
160 static void SetCellBounds(
vtkCell *cell,
double *bounds);
162 int _IntersectsBox(
vtkKdNode *node,
int *ids,
int len,
163 double x0,
double x1,
164 double y0,
double y1,
165 double z0,
double z1);
167 int _IntersectsSphere2(
vtkKdNode *node,
int *ids,
int len,
168 double x,
double y,
double z,
double rSquared);
170 int _IntersectsCell(
vtkKdNode *node,
int *ids,
int len,
171 vtkCell *cell,
int cellRegion=-1);
180 int ComputeIntersectionsUsingDataBounds;
This class represents a single spatial region in an 3D axis aligned binary spatial partitioning...
abstract base class for most VTK objects
Perform calculations (mostly intersection calculations) on regions of a 3D binary spatial partitionin...
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
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
#define VTKCOMMONDATAMODEL_EXPORT
vtkKdNode ** GetRegionList()