13 SolidHole(
const double cx,
const double cy,
const double cz,
14 const double rup,
const double rlow,
15 const double lx,
const double ly,
const double lz);
18 SolidHole(
const double cx,
const double cy,
const double cz,
19 const double rup,
const double rlow,
20 const double lx,
const double ly,
const double lz,
21 const double dx,
const double dy,
const double dz);
25 bool IsInside(
const double x,
const double y,
const double z)
const override;
26 bool GetBoundingBox(
double& xmin,
double& ymin,
double& zmin,
double& xmax,
27 double& ymax,
double& zmax)
const override;
28 bool IsHole()
const override {
return true; }
64 bool SolidPanels(std::vector<Panel>& panels)
override;
79 bool m_average =
false;
82 std::array<double, 7> m_dis{{-1., -1., -1., -1., -1., -1., -1.}};
Box with a cylindrical hole.
void SetHalfLengthY(const double ly)
Set the half-length of the box along y.
bool GetBoundingBox(double &xmin, double &ymin, double &zmin, double &xmax, double &ymax, double &zmax) const override
Return the bounding box of the solid.
bool IsHole() const override
Return true if the solid is a hole.
double GetHalfLengthY() const override
Return the half-length along y.
double GetDiscretisationLevel(const Panel &panel) override
Retrieve the discretization level of a panel.
double GetHalfLengthZ() const override
Return the half-length along z.
void SetSectors(const unsigned int n)
void SetHalfLengthX(const double lx)
Set the half-length of the box along x.
void SetLowerRadius(const double r)
Set the radius at z = -lz.
bool SolidPanels(std::vector< Panel > &panels) override
Retrieve the surface panels of the solid.
bool GetAverage() const
Return the state of the "average-radius" flag.
void SetHalfLengthZ(const double lz)
Set the half-length of the box along z.
bool IsInside(const double x, const double y, const double z) const override
Check whether a given point is inside the solid.
void SetUpperRadius(const double r)
Set the radius at z = +lz.
double GetLowerRadius() const override
Return the lower radius (of a hole).
void SetAverageRadius(const bool average)
double GetUpperRadius() const override
Return the upper radius (of a hole).
double GetHalfLengthX() const override
Return the half-length along x.
unsigned int GetSectors() const
Return the order of the approximating polygon.
Abstract base class for solids.