Go to the documentation of this file.
49 fn /= (
mag(fn) + VSMALL);
78 if(
mag(eigenVal[0]) > SMALL )
80 WarningIn(
"bool triSurface2DCheck::is2DSurface() const")
81 <<
"Surface mesh is in 3D space!"
82 <<
" This may result in an invalid mesh!" <<
endl;
96 if(
mag(
n.x()) > SMALL ||
mag(
n.y()) > SMALL )
99 WarningIn(
"bool triSurface2DCheck::is2DSurface() const")
100 <<
"The surface mesh IS NOT IN THE X-Y PLANE!!!!"
101 <<
" This will result in a mesh without any cells" <<
endl;
114 mag(
p.z() - bb.
max().
z()) > SMALL &&
118 WarningIn(
"bool triSurface2DCheck::is2DSurface() const")
119 <<
"z coordinates of the 2D surface are not uniform" <<
endl;
125 Info <<
"Detected a 2D surface in the x-y plane" <<
endl;
141 vector fn = fNormals[triI];
142 fn /= (
mag(fn) + VSMALL);
144 if(
mag(fn.
z()) > SMALL )
158 mag(
p.z() - bb.
max().
z()) > SMALL &&
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
const vectorField & facetNormals() const
return normals of facets
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
symmTensor covarianceMatrix_
covariance matrix
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< scalar > mag(const dimensioned< Type > &)
label addPointSubset(const word &)
point subsets
void addFacetToSubset(const label, const label)
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.
void addPointToSubset(const label, const label)
vector eigenVector(const tensor &, const scalar lambda)
dimensionedVector eigenValues(const dimensionedTensor &dt)
const point & min() const
Minimum describing the bounding box.
label addFacetSubset(const word &)
point subsets
void createCovarianceMatrix()
create covariance matrix
static const SymmTensor zero
triSurface2DCheck(const triSurface2DCheck &)
Disallow default bitwise copy construct.
bool is2DSurface() const
checks if the surface is a 2D triangulation
void createSubsets()
create subset containing invalid facets
A bounding box defined in terms of the points at its extremities.
#define WarningIn(functionName)
Report a warning using Foam::Warning.
const triSurf & surf_
reference to triSurf
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...