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::PARTIAL,
"partial" },
56 { filterType::FULL,
"full" },
57 { filterType::CLEAN,
"clean" },
59 { filterType::CELL,
"cell" },
60 { filterType::DIAGCELL,
"diagcell" },
76 !
dict.readIfPresentCompat
78 "isoMethod", {{
"isoAlgorithm", 0}},
79 enumName, keyType::LITERAL
86 if (!algorithmNames.found(enumName))
89 << enumName <<
" is not in enumeration: "
90 << (algorithmNames) <<
nl
94 return algorithmNames[enumName];
106 if (!
dict.readIfPresent(
"regularise", enumName, keyType::LITERAL))
116 return (sw ? deflt : filterType::NONE);
120 if (!filterNames.found(enumName))
123 << enumName <<
" is not in enumeration: "
124 << (filterNames) <<
nl
128 return filterNames[enumName];
144 clipBounds_(boundBox::invertedBox)
156 algo_ = getAlgorithmType(
dict, algo_);
157 filter_ = getFilterType(
dict, filter_);
158 snap_ =
dict.getOrDefault(
"snap",
true);
159 dict.readIfPresent(
"mergeTol", mergeTol_);
160 dict.readIfPresent(
"bounds", clipBounds_);
185 os <<
" isoMethod:" << algorithmNames[algo_]
186 <<
" regularise:" << filterNames[filter_]
187 <<
" snap:" << snap_;
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.
void print(Ostream &os) const
Print information about the settings.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Preferences for controlling iso-surface algorithms.
OBJstream os(runTime.globalPath()/outputName)
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
filterType
The filtering (regularization) to apply.