43#ifndef treeDataPoint_H
44#define treeDataPoint_H
57template<
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
Minimal example by using system/controlDict.functions:
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
void size(const label n)
Older name for setAddressableSize.
Non-pointer based hierarchical recursive searching.
Standard boundBox with extra functionality for use in octree.
Holds (reference to) pointField. Encapsulation of data needed for octree searches....
const point & shapePoint(const label index) const
Point at specified index.
const labelList & pointLabels() const
The original point ids.
bool overlaps(const label index, const treeBoundBox &sampleBb) const
Does (bb of) shape at index overlap bb.
ClassName("treeDataPoint")
bool useSubset() const
Use a subset of points.
bool empty() const
An empty effective point field?
label size() const
The effective point field size.
const point & operator[](const label index) const
The point at the specified index.
volumeType getVolumeType(const indexedOctree< treeDataPoint > &os, const point &sample) const
Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
label pointLabel(const label index) const
The original (non-subset) point label.
pointField shapePoints() const
const pointField & points() const
The original point field.
An enumeration wrapper for classification of a location as being inside/outside of a volume.
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.
OBJstream os(runTime.globalPath()/outputName)
bool ln(const fileName &src, const fileName &dst)
Create a softlink. dst should not exist. Returns true if successful.