Go to the documentation of this file.
43 #ifndef treeDataPoint_H
44 #define treeDataPoint_H
57 template<
class Type>
class indexedOctree;
72 const bool useSubset_;
90 scalar& nearestDistSqr,
121 point& intersectionPoint
142 const bool useSubsetPoints =
true
151 const bool useSubsetPoints =
true
160 inline bool empty()
const
165 ? pointLabels_.empty()
171 inline label
size()
const
176 ? pointLabels_.size()
200 inline label
pointLabel(
const label index)
const
204 useSubset_ && index >= 0
205 ? pointLabels_[index]
216 ? points_[pointLabels_[index]]
248 const scalar radiusSqr
const point & shapePoint(const label index) const
Point at specified index.
const labelList & pointLabels() const
The original point ids.
label size() const
The effective point field size.
const pointField & points() const
The original point field.
findIntersectOp(const indexedOctree< treeDataPoint > &tree)
bool useSubset() const
Use a subset of points.
Standard boundBox with extra functionality for use in octree.
const point & operator[](const label index) const
The point at the specified index.
treeDataPoint(const pointField &points)
Construct from pointField.
Holds (reference to) pointField. Encapsulation of data needed for octree searches....
An enumeration wrapper for classification of a location as being inside/outside of a volume.
pointField shapePoints() const
Non-pointer based hierarchical recursive searching.
ClassName("treeDataPoint")
OBJstream os(runTime.globalPath()/outputName)
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
findNearestOp(const indexedOctree< treeDataPoint > &tree)
label pointLabel(const label index) const
The original (non-subset) point label.
bool overlaps(const label index, const treeBoundBox &sampleBb) const
Does (bb of) shape at index overlap bb.
volumeType getVolumeType(const indexedOctree< treeDataPoint > &os, const point &sample) const
Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
bool ln(const fileName &src, const fileName &dst)
Create a softlink. dst should not exist. Returns true if successful.
bool empty() const
An empty effective point field?
Minimal example by using system/controlDict.functions: