74 return cubeBb.
contains(points_[index]);
82 const scalar radiusSqr
85 const point&
p = points_[index];
87 const scalar distSqr =
magSqr(p - centre);
89 if (distSqr <= radiusSqr)
103 scalar& nearestDistSqr,
110 const label index = indices[i];
112 const point& pt = points_[index];
114 scalar distSqr =
magSqr(pt - sample);
116 if (distSqr < nearestDistSqr)
118 nearestDistSqr = distSqr;
138 scalar nearestDistSqr =
magSqr(linePoint - nearestPoint);
142 const label index = indices[i];
144 const point& shapePt = points_[index];
152 if (distSqr < nearestDistSqr)
154 nearestDistSqr = distSqr;
157 nearestPoint = shapePt;
#define forAll(list, i)
Loop across all elements in list.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
volumeType getVolumeType(const dynamicIndexedOctree< dynamicTreeDataPoint > &, const point &) const
Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
dynamicTreeDataPoint(const DynamicList< point > &points)
Construct from List. Holds reference!
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
Non-pointer based hierarchical recursive searching. Storage is dynamic, so elements can be deleted...
PointRef start() const
Return first vertex.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
void findNearest(const labelUList &indices, const point &sample, scalar &nearestDistSqr, label &nearestIndex, point &nearestPoint) const
Calculates nearest (to sample) point in shape.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
bool contains(const vector &dir, const point &) const
Contains point (inside or on edge) and moving in direction.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
const Point & rawPoint() const
Return point with no checking.
defineTypeNameAndDebug(combustionModel, 0)
const DynamicList< point > & shapePoints() const
Get representative point cloud for all shapes inside.
const point & max() const
Maximum point defining the bounding box.
PointRef end() const
Return second vertex.
Standard boundBox + extra functionality for use in octree.
scalar distance() const
Return distance to hit.
const point & min() const
Minimum point defining the bounding box.
bool overlaps(const label index, const treeBoundBox &sampleBb) const
Does (bb of) shape at index overlap bb.
PointHit< Point > nearestDist(const Point &p) const
Return nearest distance to line from a given point.