77 transform_(csys.origin(), csys.e3(), csys.e1())
93 coordSystem::cartesian
107 return box_.regions();
113 return transform_.globalPosition(box_.coordinates());
123 box_.boundingSpheres(centres, radiusSqr);
124 centres = transform_.globalPosition(centres);
159 if (treeBb.
intersects(points_[
e[0]], points_[
e[1]], inter))
171 const point fc =
f.centre(points_);
198 const scalar nearestDistSqr
205 transform_.localPosition(
sample),
238 transform_.localPosition(start),
239 transform_.localPosition(end)
255 return findLine(start, end);
270 info[i] = findNearest(
samples[i], nearestDistSqr[i]);
286 info[i] = findLine(start[i], end[i]);
302 info[i] = findLineAny(start[i], end[i]);
314 info.setSize(start.
size());
330 +
vector(ROOTVSMALL,ROOTVSMALL,ROOTVSMALL)
345 while (((pt-start[pointI])&dirVec[pointI]) <= magSqrDirVec[pointI])
355 || (inter.
index() == hits.
last().index())
362 pt = inter.
hitPoint() + smallVec[pointI];
369 info[pointI].clear();
393 box_.getNormal(info, normal);
395 normal = transform_.globalVector(normal);
405 box_.getVolumeType(transform_.localPosition(
points), volType);
Macros for easy insertion into run-time selection tables.
#define addNamedToRunTimeSelectionTable(baseType, thisType, argNames, lookupName)
Add to construction table with 'lookupName' as the key.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void clear() noexcept
Clear the addressed list, i.e. set the size to zero.
void append(const T &val)
Copy append an element to the end of this list.
Minimal example by using system/controlDict.functions:
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void transfer(List< T > &list)
void setSize(const label n)
Alias for resize()
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...
scalar distance() const noexcept
Return distance to hit.
bool hit() const noexcept
Is there a hit.
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
const point_type & rawPoint() const noexcept
The point, no checks. Same as point()
label index() const noexcept
Return the hit index.
bool hit() const noexcept
Is there a hit?
const point_type & hitPoint() const
Return hit point. Fatal if not hit.
void size(const label n)
Older name for setAddressableSize.
T & last()
Return the last element of the list.
A bounding box defined in terms of min/max extrema points.
bool overlaps(const boundBox &bb) const
Overlaps/touches boundingBox?
bool containsAny(const UList< point > &points) const
Contains any of the points? (inside or on edge)
tmp< pointField > points() const
Corner points in an order corresponding to a 'hex' cell.
A Cartesian coordinate system.
point globalPosition(const point &local) const
From local coordinate position to global (cartesian) position.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
A face is a list of labels corresponding to mesh vertices.
virtual tmp< pointField > points() const
Get the points that define the surface.
Searching on a rotated box.
virtual void findLineAll(const pointField &start, const pointField &end, List< List< pointIndexHit > > &) const
Get all intersections in order from start to end.
pointIndexHit findNearest(const point &sample, const scalar nearestDistSqr) const
Calculate nearest point on surface.
virtual void boundingSpheres(pointField ¢res, scalarField &radiusSqr) const
Get bounding spheres (centre and radius squared), one per element.
virtual void getVolumeType(const pointField &points, List< volumeType > &volType) const
Determine type (inside/outside/mixed) for point. unknown if.
virtual void getNormal(const List< pointIndexHit > &, vectorField &normal) const
From a set of points and indices get the normal.
pointIndexHit findLine(const point &start, const point &end) const
Find nearest intersection of line between start and end.
virtual void getRegion(const List< pointIndexHit > &, labelList ®ion) const
From a set of points and indices get the region.
virtual const wordList & regions() const
Names of regions.
virtual tmp< pointField > coordinates() const
Get representative set of element coordinates.
pointIndexHit findLineAny(const point &start, const point &end) const
Find any intersection of line between start and end.
virtual tmp< pointField > points() const
Get the points that define the surface.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
A class for managing temporary objects.
Standard boundBox with extra functionality for use in octree.
static const edgeList edges
Edge to point addressing.
bool intersects(const point &overallStart, const vector &overallVec, const point &start, const point &end, point &pt, direction &ptBits) const
Intersects segment; set point to intersection position and face,.
static const faceList faces
Face to point addressing.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
PointIndexHit< point > pointIndexHit
A PointIndexHit for 3D points.
dimensionedScalar sqrt(const dimensionedScalar &ds)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
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)
#define forAll(list, i)
Loop across all elements in list.
scalarField samples(nIntervals, Zero)