Go to the documentation of this file.
49 #ifndef searchableCone_H
50 #define searchableCone_H
65 public searchableSurface
106 const scalar nearestDistSqr,
118 const scalar innerRadius1,
119 const scalar innerRadius2,
158 const scalar radius1,
159 const scalar innerRadius1,
162 const scalar innerRadius2
207 virtual tmp<pointField>
points()
const;
210 virtual bool overlaps(
const boundBox& bb)
const
vectorField pointField
pointField is a vectorField.
static scalar radius2(const searchableCone &cone, const point &pt)
Determine radial coordinate (squared)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual bool overlaps(const boundBox &bb) const
Does any part of the surface overlap the supplied bound box?
virtual void findLineAny(const pointField &start, const pointField &end, List< pointIndexHit > &) const
Find any intersection on line from start to end.
void insertHit(const point &start, const point &end, List< pointIndexHit > &info, const pointIndexHit &hit) const
Insert a hit if it differs (by a tolerance) from the existing ones.
virtual tmp< pointField > coordinates() const
Get representative set of element coordinates.
A class for managing temporary objects.
TypeName("searchableCone")
Runtime type information.
virtual void findNearest(const pointField &sample, const scalarField &nearestDistSqr, List< pointIndexHit > &) const
Find nearest point on cylinder.
virtual const wordList & regions() const
Names of regions.
Searching on (optionally hollow) cone.
virtual bool writeData(Ostream &) const
Pure virtual writaData function.
const scalar radius2_
Outer radius at point2.
InfoProxy< IOobject > info() const
Return info proxy.
const vector unitDir_
Normalised vector point2-point1.
virtual void getVolumeType(const pointField &, List< volumeType > &) const
Determine type (inside/outside/mixed) for point. unknown if.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
const scalar magDir_
Length of vector point2-point1.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const scalar innerRadius2_
Inner radius at point2.
Pre-declare SubField and related Field type.
void findNearestAndNormal(const point &sample, const scalar nearestDistSqr, pointIndexHit &nearInfo, vector &normal) const
Find nearest point on cylinder.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
virtual tmp< pointField > points() const
Get the points that define the surface.
wordList regions_
Names of regions.
virtual ~searchableCone()
Destructor.
const point point1_
'Left' point
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual bool hasVolumeType() const
Whether supports volume type below.
Vector< scalar > vector
A scalar version of the templated Vector.
boundBox calcBounds() const
Return the boundBox of the cylinder.
virtual void findLine(const pointField &start, const pointField &end, List< pointIndexHit > &) const
Find nearest intersection on line from start to end.
void findLineAll(const searchableCone &cone, const scalar innerRadius1, const scalar innerRadius2, const point &start, const point &end, pointIndexHit &near, pointIndexHit &far) const
Find both intersections with cone. innerRadii supplied externally.
virtual void getRegion(const List< pointIndexHit > &, labelList ®ion) const
From a set of points and indices get the region.
searchableCone(const searchableCone &)
Disallow default bitwise copy construct.
virtual label size() const
Range of local indices that can be returned.
virtual void boundingSpheres(pointField ¢res, scalarField &radiusSqr) const
Get bounding spheres (centre and radius squared), one per element.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void getNormal(const List< pointIndexHit > &, vectorField &normal) const
From a set of points and indices get the normal.
A bounding box defined in terms of the points at its extremities.
const point point2_
'Right' point
void operator=(const searchableCone &)
Disallow default bitwise assignment.
const scalar innerRadius1_
Inner radius at point1.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 2-tuple for storing two objects of different types.
vector point
Point is a vector.
const scalar radius1_
Outer radius at point1.
A normal distribution model.