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" },
78 "isoMethod", {{
"isoAlgorithm", 0}},
86 if (!algorithmNames.found(enumName))
89 << enumName <<
" is not in enumeration: "
90 << (algorithmNames) <<
nl
94 return algorithmNames[enumName];
116 return (sw ? deflt : filterType::NONE);
120 if (!filterNames.found(enumName))
123 << enumName <<
" is not in enumeration: "
124 << (filterNames) <<
nl
128 return filterNames[enumName];
185 os <<
" isoMethod:" << algorithmNames[algo_]
186 <<
" regularise:" << filterNames[filter_]
187 <<
" snap:" << snap_;
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
bool good() const noexcept
True if the Switch represents a valid enumeration.
static Switch find(const std::string &str)
A bounding box defined in terms of min/max extrema points.
static const boundBox invertedBox
A large inverted boundBox: min/max == +/- ROOTVGREAT.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool readIfPresentCompat(const word &keyword, std::initializer_list< std::pair< const char *, int > > compat, T &val, enum keyType::option matchOpt=keyType::REGEX) const
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Preferences for controlling iso-surface algorithms.
static const Enum< filterType > filterNames
Names for the filtering types.
algorithmType
The algorithm types.
void setClipBounds(const boundBox &bb)
Set optional clipping bounding box.
static algorithmType getAlgorithmType(const dictionary &dict, const algorithmType deflt)
Get 'isoMethod' or 'isoAlgorithm' as enumeration.
static filterType getFilterType(const dictionary &dict, const filterType deflt)
Get 'regularise' as bool or enumeration.
static const Enum< algorithmType > algorithmNames
Names for the iso-surface algorithms.
filterType
The filtering (regularization) to apply.
scalar print()
Print to screen.
A class for handling words, derived from Foam::string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
OBJstream os(runTime.globalPath()/outputName)
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)