Go to the documentation of this file.
53 scalar t = lineIntersect(l);
94 const point& basePoint,
101 bounds() = calcBounds();
114 bounds() = calcBounds();
128 if (regions_.empty())
131 regions_[0] =
"region0";
144 centres[0] = refPoint();
146 radiusSqr.setSize(1);
162 info[i].setPoint(nearestPoint(
samples[i]));
164 if (
magSqr(
samples[i]-info[i].rawPoint()) > nearestDistSqr[i])
166 info[i].setIndex(-1);
189 info[i] = findLine(start[i], end[i]);
201 findLine(start, end, info);
213 findLine(start, end, nearestInfo);
218 if (nearestInfo[pointI].hit())
221 info[pointI][0] = nearestInfo[pointI];
225 info[pointI].
clear();
248 n.setSize(info.
size());
260 <<
"Volume type not supported for plane."
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const vector & normal() const
Return plane normal.
virtual void getVolumeType(const pointField &, List< volumeType > &) const
Determine type (inside/outside/mixed) for point. unknown if.
void setIndex(const label index)
#define forAll(list, i)
Loop across all elements in list.
virtual void findLineAll(const pointField &start, const pointField &end, List< List< pointIndexHit > > &) const
Get all intersections in order from start to end.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
@ nComponents
Number of components in this vector space.
boundBox calcBounds() const
Return the boundBox of the plane.
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual void boundingSpheres(pointField ¢res, scalarField &radiusSqr) const
Get bounding spheres (centre and radius squared), one per element.
Geometric class that creates a 2D plane and can return the intersection point between a line and the ...
scalarField samples(nIntervals, 0)
searchablePlane(const searchablePlane &)
Disallow default bitwise copy construct.
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
Pre-declare SubField and related Field type.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
void setPoint(const Point &p)
virtual void findNearest(const pointField &sample, const scalarField &nearestDistSqr, List< pointIndexHit > &) const
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
void setSize(const label)
Reset size of List.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
pointIndexHit findLine(const point &start, const point &end) const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual const wordList & regions() const
Names of regions.
void clear()
Clear the list, i.e. set size to zero.
virtual ~searchablePlane()
Destructor.
virtual void getRegion(const List< pointIndexHit > &, labelList ®ion) const
From a set of points and indices get the region.
A bounding box defined in terms of the points at its extremities.
void size(const label)
Override size to be inconsistent with allocated storage.
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
Point vec() const
Return start-end vector.
virtual void findLineAny(const pointField &start, const pointField &end, List< pointIndexHit > &) const
Return any intersection on segment from start to end.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
virtual void getNormal(const List< pointIndexHit > &, vectorField &normal) const
From a set of points and indices get the normal.
A normal distribution model.