1#ifndef G_SOLID_SPHERE_H
2#define G_SOLID_SPHERE_H
13 SolidSphere(
const double cx,
const double cy,
const double cz,
18 bool IsInside(
const double x,
const double y,
const double z)
const override;
19 bool GetBoundingBox(
double& xmin,
double& ymin,
double& zmin,
double& xmax,
20 double& ymax,
double& zmax)
const override;
21 bool IsSphere()
const override {
return true; }
33 bool SolidPanels(std::vector<Panel>& panels)
override;
41 unsigned int m_n = 10;
~SolidSphere()
Destructor.
bool GetBoundingBox(double &xmin, double &ymin, double &zmin, double &xmax, double &ymax, double &zmax) const override
Return the bounding box of the solid.
bool IsInside(const double x, const double y, const double z) const override
Check whether a given point is inside the solid.
void SetRadius(const double r)
Set the radius of the sphere.
double GetDiscretisationLevel(const Panel &panel) override
Retrieve the discretization level of a panel.
bool SolidPanels(std::vector< Panel > &panels) override
Retrieve the surface panels of the solid.
bool IsSphere() const override
Return true if the solid is a sphere.
double GetRadius() const override
Return the radius.
void SetMeridians(const unsigned int n)
Abstract base class for solids.