101 const bool writeLinesOnly,
110 const bool leavesOnly,
111 const bool writeLinesOnly,
123 const bool equalBinSize,
150 const bool equalBinSize =
true,
151 const label maxLevel = 3,
152 const label minBinSize = 100
Templated tree of axis-aligned bounding boxes (AABB)
bool overlaps(const boundBox &bbIn) const
static scalar tolerance_
Tolerance.
label minLeafSize_
Minimum points per leaf.
AABBTree()
Null constructor.
const List< labelList > & addressing() const
Return the contents addressing.
label maxLevel_
Maximum tree level.
bool pointInside(const point &pt) const
Determine whether a point is inside the bounding boxes.
void writeOBJ(const bool writeLinesOnly, const treeBoundBox &bb, label &vertI, Ostream &os) const
Write OBJ file of bounding box.
List< labelList > addressing_
Leaf addressing.
const List< treeBoundBox > & boundBoxes() const
Return the bounding boxes making up the tree.
void createBoxes(const bool equalBinSize, const label level, const List< Type > &objects, const pointField &points, const DynamicList< label > &objectIDs, const treeBoundBox &bb, const label nodeI, DynamicList< Pair< treeBoundBox > > &bbs, DynamicList< labelPair > &nodes, DynamicList< labelList > &addressing) const
Create the bounding boxes by interrogating points.
List< treeBoundBox > boundBoxes_
Bounding boxes making up the tree.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An ordered pair of two objects of type <T> with first() and second() elements.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A bounding box defined in terms of min/max extrema points.
Standard boundBox with extra functionality for use in octree.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Istream & operator>>(Istream &, directionInfo &)