12 #ifdef MOOSE_UNIT_TEST 13 #include "gtest/gtest.h" 49 CSGSurface(
const std::string & name,
const std::string & surf_type);
68 virtual std::unordered_map<std::string, Real>
getCoeffs()
const = 0;
118 #ifdef MOOSE_UNIT_TEST std::string name(const ElemQuality q)
const std::string & getName() const
Get the name of surface.
void setName(const std::string &name)
Halfspace
Enum for the sign of the half-space being represented by a point and surface.
virtual Real evaluateSurfaceEquationAtPoint(const Point &p) const =0
given a point, determine its evaluation based on the surface equation.
bool operator==(const CSGSurface &other) const
Operator overload for checking if two CSGSurface objects are equal.
FRIEND_TEST(CSGSurfaceTest, testSetName)
Friends for unit testing.
virtual std::unordered_map< std::string, Real > getCoeffs() const =0
Get the coefficients that define the surface.
virtual ~CSGSurface()=default
Destructor.
const std::string _surface_type
Type of surface that is being represented string is taken directly from the surface class name...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::string _name
Name of surface.
CSGSurfaceList is a container for storing CSGSurface objects in the CSGBase object.
CSGSurface creates an internal representation of a Constructive Solid Geometry (CSG) surface...
CSGSurface(const std::string &name)
Default constructor.
CSGSurface::Halfspace getHalfspaceFromPoint(const Point &p) const
given a point, determine if it is in the positive or negative half-space for the surface ...
bool operator!=(const CSGSurface &other) const
Operator overload for checking if two CSGSurface objects are not equal.
const std::string & getSurfaceType() const
Get the Surface Type.