Go to the documentation of this file.
41 { algorithmType::ALGO_DEFAULT,
"default" },
42 { algorithmType::ALGO_CELL,
"cell" },
43 { algorithmType::ALGO_POINT,
"point" },
44 { algorithmType::ALGO_TOPO,
"topo" },
54 { filterType::NONE,
"none" },
55 { filterType::CELL,
"cell" },
56 { filterType::DIAGCELL,
"diagcell" },
57 { filterType::PARTIAL,
"partial" },
58 { filterType::FULL,
"full" },
74 !
dict.readIfPresentCompat
76 "isoMethod", {{
"isoAlgorithm", 0}},
77 enumName, keyType::LITERAL
84 if (!algorithmNames.found(enumName))
87 << enumName <<
" is not in enumeration: "
88 << (algorithmNames) <<
nl
92 return algorithmNames[enumName];
104 if (!
dict.readIfPresent(
"regularise", enumName, keyType::LITERAL))
114 return (sw ? deflt : filterType::NONE);
118 if (!filterNames.found(enumName))
121 << enumName <<
" is not in enumeration: "
122 << (filterNames) <<
nl
126 return filterNames[enumName];
141 clipBounds_(boundBox::invertedBox)
153 algo_ = getAlgorithmType(
dict, algo_);
154 filter_ = getFilterType(
dict, filter_);
155 dict.readIfPresent(
"mergeTol", mergeTol_);
156 dict.readIfPresent(
"bounds", clipBounds_);
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...
static filterType getFilterType(const dictionary &dict, const filterType deflt)
Get 'regularise' as bool or enumeration.
A class for handling words, derived from Foam::string.
algorithmType
The algorithm types.
bool good() const noexcept
True if the Switch represents a valid enumeration.
static const Enum< algorithmType > algorithmNames
Names for the iso-surface algorithms.
isoSurfaceParams(const algorithmType algo=algorithmType::ALGO_DEFAULT, const filterType filter=filterType::DIAGCELL) noexcept
Default construct, or with specified algorithm.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Preferences for controlling iso-surface algorithms.
void setClipBounds(const boundBox &bb)
Set optional clipping bounding box.
label find(const ListType &input, const UnaryPredicate &pred, const label start=0)
Find index of the first occurrence that satisfies the predicate.
static algorithmType getAlgorithmType(const dictionary &dict, const algorithmType deflt)
Get 'isoMethod' or 'isoAlgorithm' as enumeration.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionedScalar e
Elementary charge.
A bounding box defined in terms of min/max extrema points.
static const Enum< filterType > filterNames
Names for the filtering types.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
filterType
The filtering (regularization) to apply.