55 const bool useSubsetPoints
60 useSubset_(useSubsetPoints)
68 const bool useSubsetPoints
73 useSubset_(useSubsetPoints)
130 const scalar radiusSqr
142 scalar& nearestDistSqr,
149 for (
const label index : indices)
155 if (distSqr < nearestDistSqr)
157 nearestDistSqr = distSqr;
179 scalar nearestDistSqr = GREAT;
182 nearestDistSqr =
magSqr(linePoint - nearestPoint);
185 for (
const label index : indices)
189 if (tightest.contains(shapePt))
195 if (distSqr < nearestDistSqr)
197 nearestDistSqr = distSqr;
200 nearestPoint = shapePt;
204 minPt =
min(
ln.start(),
ln.end());
211 maxPt =
max(
ln.start(),
ln.end());
Minimal example by using system/controlDict.functions:
int overlaps
Flag to control which overlap calculations are performed.
Describes the interaction of a face and a point. It carries the info of a successful hit and (if succ...
const point_type & rawPoint() const noexcept
The point, no checks.
scalar distance() const noexcept
Return distance to hit.
const Cmpt & z() const
Access to the vector z component.
const Cmpt & y() const
Access to the vector y component.
const Cmpt & x() const
Access to the vector x component.
friend Ostream & operator(Ostream &, const faMatrix< Type > &)
Non-pointer based hierarchical recursive searching.
Standard boundBox with extra functionality for use in octree.
bool contains(const vector &dir, const point &) const
Contains point (inside or on edge) and moving in direction.
Holds (reference to) pointField. Encapsulation of data needed for octree searches....
const point & shapePoint(const label index) const
Point at specified index.
volumeType getVolumeType(const indexedOctree< treeDataPoint > &os, const point &sample) const
Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
pointField shapePoints() const
An enumeration wrapper for classification of a location as being inside/outside of a volume.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
vectorField pointField
pointField is a vectorField.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
bool ln(const fileName &src, const fileName &dst)
Create a softlink. dst should not exist. Returns true if successful.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
labelList pointLabels(nPoints, -1)