36 namespace blockVertices
58 surfaces_.setSize(names.
size());
61 surfaces_[i] = geometry_.findSurfaceID(names[i]);
63 if (surfaces_[i] == -1)
66 <<
"Cannot find surface " << names[i] <<
" in geometry" 75 Foam::blockVertices::projectVertex::operator
point()
const 100 return boundaryNear[0];
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
static void findNearest(const PtrList< searchableSurface > &, const labelList &surfacesToTest, const pointField &, const scalarField &nearestDistSqr, labelList &surfaces, List< pointIndexHit > &)
Find nearest. Return -1 (and a miss()) or surface and nearest.
Unit conversion functions.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void size(const label)
Override size to be inconsistent with allocated storage.
A bounding box defined in terms of the points at its extremities.
defineTypeNameAndDebug(namedVertex, 0)
Macros for easy insertion into run-time selection tables.
projectVertex(const dictionary &, const label index, const searchableSurfaces &geometry, Istream &)
Construct from Istream setting pointsList.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Container for searchableSurfaces.
addToRunTimeSelectionTable(blockVertex, namedVertex, Istream)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
const point & max() const
Maximum describing the bounding box.
vector point
Point is a vector.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
vector span() const
The bounding box span (from minimum to maximum)
const point & min() const
Minimum describing the bounding box.
static boundBox bounds(const PtrList< searchableSurface > &allSurfaces, const labelList &surfacesToTest)
Find the boundBox of the selected surfaces.