22 :
CSGSurface(name), _x0(0.0), _y0(0.0), _z0(0.0), _r(r)
27std::unordered_map<std::string, Real>
30 std::unordered_map<std::string, Real> coeffs = {{
"x0",
_x0}, {
"y0",
_y0}, {
"z0",
_z0}, {
"r",
_r}};
40 Utility::pow<2>((p(0) -
_x0)) + Utility::pow<2>((p(1) -
_y0)) + Utility::pow<2>((p(2) -
_z0));
42 return dist_sq - Utility::pow<2>(
_r);
49 mooseError(
"Radius of sphere must be positive.");
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Real _r
Value of r in equation of sphere.
Real _z0
Value of z0 in equation of sphere.
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)^...
CSGSphere(const std::string &name, const Point ¢er, const Real r)
Construct a new CSGSphere surface.
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
Real _y0
Value of y0 in equation of sphere.
CSGSurface creates an internal representation of a Constructive Solid Geometry (CSG) surface,...