Go to the documentation of this file.
99 const bool writeLinesOnly,
108 const bool leavesOnly,
109 const bool writeLinesOnly,
121 const bool equalBinSize,
149 const bool equalBinSize =
true,
150 const label maxLevel = 3,
151 const label minBinSize = 100
bool pointInside(const point &pt) const
Determine whether a point is inside the bounding boxes.
Standard boundBox + extra functionality for use in octree.
bool overlaps(const boundBox &bbIn) const
Determine whether a bounding box overlaps the tree bounding.
const List< treeBoundBox > & boundBoxes() const
Return the bounding boxes making up the tree.
List< treeBoundBox > boundBoxes_
Bounding boxes making up the tree.
void writeOBJ(const bool writeLinesOnly, const treeBoundBox &bb, label &vertI, Ostream &os) const
Write OBJ file of bounding box.
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Ostream & operator<<(Ostream &, const edgeMesh &)
AABBTree()
Null constructor.
label maxLevel_
Maximum tree level.
static scalar tolerance_
Tolerance.
An ordered pair of two objects of type <T> with first() and second() elements.
const List< labelList > & addressing() const
Return the contents addressing.
Templated tree of axis-aligned bounding boxes (AABB)
Istream & operator>>(Istream &, edgeMesh &)
A bounding box defined in terms of the points at its extremities.
label minLeafSize_
Minimum points per leaf.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
List< labelList > addressing_
Leaf adressing.