Go to the documentation of this file.
38 { algorithmType::ALGO_CELL,
"cell" },
39 { algorithmType::ALGO_TOPO,
"topo" },
40 { algorithmType::ALGO_POINT,
"point" },
50 { filterType::NONE,
"none" },
51 { filterType::CELL,
"cell" },
52 { filterType::DIAGCELL,
"diagcell" },
53 { filterType::PARTIAL,
"partial" },
54 { filterType::FULL,
"full" },
69 if (!
dict.readIfPresent(
"regularise", filterName, keyType::LITERAL))
83 : isoSurfaceBase::filterType::NONE
88 if (!isoSurfaceBase::filterNames.
found(filterName))
91 << filterName <<
" is not in enumeration: "
92 << isoSurfaceBase::filterNames <<
nl
96 return isoSurfaceBase::filterNames[filterName];
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
A class for handling words, derived from Foam::string.
static const Enum< algorithmType > algorithmNames
Names for the iso-surface algorithms.
static const Enum< filterType > filterNames
Names for the filtering types.
bool good() const noexcept
True if the Switch represents a valid enumeration.
algorithmType
The algorithm types.
isoSurfaceBase(const scalar iso, const boundBox &bounds=boundBox::invertedBox)
Construct with iso value.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
label find(const ListType &input, const UnaryPredicate &pred, const label start=0)
Find index of the first occurrence that satisfies the predicate.
errorManipArg< error, int > exit(error &err, const int errNo=1)
MeshedSurface< face > meshedSurface
static filterType getFilterType(const dictionary &dict, const isoSurfaceBase::filterType deflt)
Get 'regularise' as bool or enumeration.
A bounding box defined in terms of min/max extrema points.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
filterType
The filtering (regularization) to apply.