Loading...
Searching...
No Matches
isoSurfaceTopo.C File Reference
Include dependency graph for isoSurfaceTopo.C:

Go to the source code of this file.

Namespaces

namespace  Foam
 Namespace for OpenFOAM.

Macros

#define SNAP_END_ENCODE(pos, val)
#define SNAP_END_VALUE(pos, val)
#define ADD_SNAP_INDEX(pos, d1, d2, idx1, idx2)

Functions

 defineTypeNameAndDebug (isoSurfaceTopo, 0)
static int getTetCutIndex (scalar p0, scalar p1, scalar p2, scalar p3, const scalar val, const bool doSnap) noexcept
static void appendTriLabels (DynamicList< label > &verts, const label a, const label b, const label c, const bool flip)
static const pointgetMeshPointRef (const polyMesh &mesh, const label pointi)

Detailed Description

Original source file isoSurfaceTopo.C

Definition in file isoSurfaceTopo.C.

Macro Definition Documentation

◆ SNAP_END_ENCODE

#define SNAP_END_ENCODE ( pos,
val )
Value:
(((val) << (4 + 2 * pos)))

Definition at line 57 of file isoSurfaceTopo.C.

◆ SNAP_END_VALUE

#define SNAP_END_VALUE ( pos,
val )
Value:
(((val) >> (4 + 2 * pos)) & 0x3)

Definition at line 58 of file isoSurfaceTopo.C.

◆ ADD_SNAP_INDEX

#define ADD_SNAP_INDEX ( pos,
d1,
d2,
idx1,
idx2 )
Value:
switch (cutIndex & (idx1 | idx2)) \
{ \
case idx1 : /* first below, second above */ \
case idx2 : /* first above, second below */ \
cutIndex |= SNAP_END_ENCODE \
( \
pos, \
((d1 * 100 < d2) ? 1 : (d2 * 100 < d1) ? 2 : 0) \
); \
break; \
}
#define SNAP_END_ENCODE(pos, val)

Referenced by Foam::getTetCutIndex().