Preferences for controlling iso-surface algorithms. More...
Public Types | |
enum | algorithmType : uint8_t { ALGO_DEFAULT = 0, ALGO_TOPO, ALGO_CELL, ALGO_POINT } |
enum | filterType : uint8_t { NONE = 0, CELL, DIAGCELL, NONMANIFOLD, PARTIAL = CELL, FULL = DIAGCELL, CLEAN = NONMANIFOLD } |
Public Member Functions | |
isoSurfaceParams (const algorithmType algo=algorithmType::ALGO_DEFAULT, const filterType filter=filterType::DIAGCELL) noexcept | |
isoSurfaceParams (const dictionary &dict, const isoSurfaceParams ¶ms=isoSurfaceParams()) | |
isoSurfaceParams (const dictionary &dict, const algorithmType algo, const filterType filter=filterType::DIAGCELL) | |
algorithmType | algorithm () const noexcept |
void | algorithm (algorithmType algo) noexcept |
filterType | filter () const noexcept |
void | filter (filterType fltr) noexcept |
bool | snap () const noexcept |
void | snap (bool on) noexcept |
scalar | mergeTol () const noexcept |
void | mergeTol (const scalar relTol) noexcept |
const boundBox & | getClipBounds () const noexcept |
boundBox & | getClipBounds () noexcept |
void | setClipBounds (const boundBox &bb) |
void | print (Ostream &os) const |
Static Public Member Functions | |
static algorithmType | getAlgorithmType (const dictionary &dict, const algorithmType deflt) |
static filterType | getFilterType (const dictionary &dict, const filterType deflt) |
Static Public Attributes | |
static const Enum< algorithmType > | algorithmNames |
static const Enum< filterType > | filterNames |
Preferences for controlling iso-surface algorithms.
Some common dictionary properties:
Property | Description | Required | Default |
---|---|---|---|
isoMethod | Algorithm (cell/topo/point/default) | no | default |
regularise | Face simplification (enum or bool) | no | true |
mergeTol | Point merge tolerance (cell/point) | no | 1e-6 |
snap | Point snapping (topo) | no | true |
bounds | Optional clip bounds | no | inverted |
The default algorithm denotes the use of the current standard algorithm.
Filtering types (for topological iso-surface)
none
: leave tet cuts untouchedpartial
, cell
: Combine intra-cell facesfull
, diagcell
: Perform partial
and remove face-diagonal pointsclean
: Perform full
and eliminate open edges as well. (May cause excessive erosion!)Definition at line 103 of file isoSurfaceParams.H.
enum algorithmType : uint8_t |
Enumerator | |
---|---|
ALGO_DEFAULT | Use current 'standard' algorithm. |
ALGO_TOPO | |
ALGO_CELL | |
ALGO_POINT |
Definition at line 110 of file isoSurfaceParams.H.
|
strong |
Definition at line 119 of file isoSurfaceParams.H.
|
explicitnoexcept |
Definition at line 128 of file isoSurfaceParams.C.
|
explicit |
Definition at line 142 of file isoSurfaceParams.C.
References dict.
|
explicit |
Definition at line 158 of file isoSurfaceParams.C.
|
static |
Definition at line 61 of file isoSurfaceParams.C.
References dict.
|
static |
Definition at line 93 of file isoSurfaceParams.C.
References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::ListOps::find(), Switch::good(), and Foam::nl.
|
inlinenoexcept |
Definition at line 209 of file isoSurfaceParams.H.
Referenced by distanceSurface::createGeometry(), isoSurfaceBase::New(), and sampledIsoSurface::sampledIsoSurface().
|
inlinenoexcept |
Definition at line 215 of file isoSurfaceParams.H.
|
inlinenoexcept |
Definition at line 221 of file isoSurfaceParams.H.
Referenced by isoSurfaceCell::isoSurfaceCell(), isoSurfacePoint::isoSurfacePoint(), and isoSurfaceTopo::isoSurfaceTopo().
|
inlinenoexcept |
Definition at line 227 of file isoSurfaceParams.H.
|
inlinenoexcept |
Definition at line 233 of file isoSurfaceParams.H.
|
inlinenoexcept |
Definition at line 239 of file isoSurfaceParams.H.
|
inlinenoexcept |
Definition at line 245 of file isoSurfaceParams.H.
Referenced by isoSurfaceCell::isoSurfaceCell(), and isoSurfacePoint::isoSurfacePoint().
|
inlinenoexcept |
Definition at line 251 of file isoSurfaceParams.H.
|
inlinenoexcept |
Definition at line 257 of file isoSurfaceParams.H.
Referenced by isoSurfaceTopo::isoSurfaceTopo().
|
inlinenoexcept |
Definition at line 263 of file isoSurfaceParams.H.
void setClipBounds | ( | const boundBox & | bb | ) |
Definition at line 170 of file isoSurfaceParams.C.
void print | ( | Ostream & | os | ) | const |
Definition at line 176 of file isoSurfaceParams.C.
References os().
|
static |
Definition at line 158 of file isoSurfaceParams.H.
|
static |
Definition at line 161 of file isoSurfaceParams.H.
Referenced by isoSurfaceTopo::isoSurfaceTopo().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.