43#ifndef Foam_dynamicTreeDataPoint_H
44#define Foam_dynamicTreeDataPoint_H
110 label
objectIndex(label index)
const noexcept {
return index; }
116 const point&
centre(label index)
const {
return points_[index]; }
144 const scalar radiusSqr
154 scalar& nearestDistSqr,
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
Minimal example by using system/controlDict.functions:
bool empty() const noexcept
True if List is empty (ie, size() is zero).
void size(const label n)
Older name for setAddressableSize.
Non-pointer based hierarchical recursive searching. Storage is dynamic, so elements can be deleted.
const point & operator[](label index) const
Point at specified shape index.
bool useSubset() const noexcept
const labelList& pointLabels() const noexcept { labelList::null(); }
const DynamicList< point > & centres() const noexcept
Representative point cloud.
label objectIndex(label index) const noexcept
Map from shape index to original (non-subset) point label.
void findNearest(const labelUList &indices, const point &sample, scalar &nearestDistSqr, label &nearestIndex, point &nearestPoint) const
Calculates nearest (to sample) point in shape.
volumeType getVolumeType(const dynamicIndexedOctree< dynamicTreeDataPoint > &, const point &) const
Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
bool empty() const noexcept
Is the effective point field empty?
int nDim() const noexcept
Object dimension == 0 (point element).
bool intersects(const label index, const point &start, const point &end, point &result) const
Calculate intersection of shape with ray.
dynamicTreeDataPoint(const DynamicList< point > &points)
Construct from List. Holds reference!
treeBoundBox bounds(const labelUList &indices) const
Return bounding box for the specified point indices.
const point & centre(label index) const
Point at specified shape index.
label size() const noexcept
The size of the effective point field.
const DynamicList< point > & points() const noexcept
The original point field.
ClassNameNoDebug("dynamicTreeDataPoint")
bool overlaps(const label index, const treeBoundBox &searchBox) const
Does (bb of) shape at index overlap bb.
Standard boundBox with extra functionality for use in octree.
An enumeration wrapper for classification of a location as being inside/outside of a volume.
#define ClassNameNoDebug(TypeNameString)
Add typeName information from argument TypeNameString to a class.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Namespace for bounding specifications. At the moment, mostly for tables.
line< point, const point & > linePointRef
A line using referred points.
vector point
Point is a vector.
UList< label > labelUList
A UList of labels.
bool ln(const fileName &src, const fileName &dst)
Create a softlink. dst should not exist. Returns true if successful.