14#include "libmesh/point.h"
33 CSGSphere(
const std::string & name,
const Point &
center,
const Real r);
41 CSGSphere(
const std::string & name,
const Real r);
54 virtual std::unordered_map<std::string, Real>
getCoeffs()
const override;
70 virtual std::unique_ptr<CSGSurface>
clone()
const override
CSGSphere creates an internal representation of a Constructive Solid Geometry (CSG) sphere,...
Real _r
Value of r in equation of sphere.
Real _z0
Value of z0 in equation of sphere.
virtual ~CSGSphere()=default
Destructor.
virtual std::unordered_map< std::string, Real > getCoeffs() const override
Get the coefficients (x0, y0, z0, r) for the equation of a sphere (x - x0)^2 + (y - y0)^2 + (z - z0)^...
Real _x0
Value of x0 in equation of sphere.
virtual Real evaluateSurfaceEquationAtPoint(const Point &p) const override
given a point, determine its evaluation based on the equation of the sphere
virtual std::unique_ptr< CSGSurface > clone() const override
create clone of CSGSphere object
Real _y0
Value of y0 in equation of sphere.
CSGSurface creates an internal representation of a Constructive Solid Geometry (CSG) surface,...
std::string _name
Name of surface.