34 namespace sampledSurfaces
54 Foam::sampledSurfaces::cutPlane::calcIsoSurf()
const
61 pointDistance[pointi] =
67 return autoPtr<cutPolyIsoSurface>
69 new cutPolyIsoSurface(
mesh(), pointDistance, 0,
zoneName())
104 os <<
"cutPlane: " <<
name() <<
" :"
105 <<
" plane:" << plane_
106 <<
" faces:" << faces().size()
107 <<
" points:" <<
points().size();
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
scalar signedDistance(const point &p) const
Return signed distance from the given point to the plane.
Mesh consisting of general polyhedral cells.
An abstract class for surfaces with sampling.
const polyMesh & mesh() const
Access to the underlying mesh.
A sampledSurface defined by a plane.
virtual ~cutPlane()
Destructor.
virtual bool needsUpdate() const
Does the surface need an update?
virtual void print(Ostream &) const
Write.
cutPlane(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
A base class for sampled surfaces constructed from iso-surfaces.
const word & zoneName() const
Access the zoneName.
virtual const pointField & points() const
Points of surface.
A class for handling words, derived from string.
addNamedToRunTimeSelectionTable(sampledSurface, cutPlane, word, cuttingPlane)
defineTypeNameAndDebug(cutPlane, 0)
addToRunTimeSelectionTable(sampledSurface, cutPlane, word)
word name(const bool)
Return a word representation of a bool.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.