Go to the documentation of this file.
58 patches[0].geometricType() =
"patch";
67 "void triSurfaceExtrude2DEdges::extrudeSurface(triSurf&) const"
68 ) <<
"Cannot extrude edges which are not in the x-y plane!"
73 pts.setSize(2 * sPoints.size());
75 const label nOffset = sPoints.size();
76 const scalar zOffset = 0.1 * bb.
mag();
80 pts[pI] = pts[pI+nOffset] = sPoints[pI];
81 pts[pI+sPoints.size()].z() += zOffset;
91 const edge&
e = edges[eI];
92 const label tI = 2 * eI;
94 triangles[tI + 1] =
labelledTri(
e[0],
e[1]+nOffset,
e[0]+nOffset, 0);
scalar mag() const
The magnitude of the bounding box span.
const point & max() const
Maximum describing the bounding box.
#define forAll(list, i)
Loop across all elements in list.
const pointField & points() const
access to points
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
label size() const
Size of the active part of the list.
dimensioned< scalar > mag(const dimensioned< Type > &)
const edgeLongList & featureEdges() const
access to feature edges
geometricSurfacePatchList & patchesAccess()
access to patches
void setSize(const label)
Reset size of List.
triSurfaceExtrude2DEdges(const triSurfaceExtrude2DEdges &)
Disallow default bitwise copy construct.
const triSurf * extrudeSurface() const
~triSurfaceExtrude2DEdges()
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
pointField & pointsAccess()
non-const access to points
LongList< labelledTri > & facetsAccess()
access to facets
const point & min() const
Minimum describing the bounding box.
const double e
Elementary charge.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const triSurf & surf_
reference to triSurf
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Triangle with additional region number.
A bounding box defined in terms of the points at its extremities.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.