Cardinal
|
#include <SymmetryPointGenerator.h>
Public Member Functions | |
SymmetryPointGenerator (const InputParameters ¶meters) | |
virtual void | initialize () |
virtual void | finalize () |
virtual void | execute () |
bool | onPositiveSideOfPlane (const Point &p, const Point &normal) const |
Point | reflectPointAcrossPlane (const Point &p, const Point &normal) const |
Point | transformPoint (const Point &p) const |
int | sector (const Point &p) const |
Static Public Member Functions | |
static InputParameters | validParams () |
Protected Attributes | |
const bool | _rotational_symmetry |
Whether rotational symmetry is applied; otherwise, the domain is mirror-symmetric. More... | |
Point | _normal |
Normal defining the first symmetry plane. More... | |
Point | _rotational_axis |
Axis of angular rotation symmetry. More... | |
Real | _angle |
Rotation angle. More... | |
Point | _zero_theta |
Line defining the "zero-theta" line for rotational symmetry. More... | |
Point | _reflection_normal |
Normal defining the reflection plane, for odd-numbered sectors. More... | |
Class that maps from a point (x, y, z) to a new point that is either rotationally symmetry or mirrored. The origin for reflection and rotation is (0, 0, 0).
SymmetryPointGenerator::SymmetryPointGenerator | ( | const InputParameters & | parameters | ) |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
bool SymmetryPointGenerator::onPositiveSideOfPlane | ( | const Point & | p, |
const Point & | normal | ||
) | const |
Whether point is on the positive side of a plane; points exactly on plane return false
[in] | p | point |
[in] | normal | unit normal defining the plane |
Point SymmetryPointGenerator::reflectPointAcrossPlane | ( | const Point & | p, |
const Point & | normal | ||
) | const |
Reflect point across a plane
[in] | p | point |
[in] | normal | unit normal defining the plane |
int SymmetryPointGenerator::sector | ( | const Point & | p | ) | const |
Sector of point
[in] | p | point |
Point SymmetryPointGenerator::transformPoint | ( | const Point & | p | ) | const |
Transform point coordinates according to class settings
[in] | p | point |
|
static |
|
protected |
Rotation angle.
|
protected |
Normal defining the first symmetry plane.
|
protected |
Normal defining the reflection plane, for odd-numbered sectors.
|
protected |
Axis of angular rotation symmetry.
|
protected |
Whether rotational symmetry is applied; otherwise, the domain is mirror-symmetric.
|
protected |
Line defining the "zero-theta" line for rotational symmetry.