13 SolidBox(
const double cx,
const double cy,
const double cz,
const double lx,
14 const double ly,
const double lz);
16 SolidBox(
const double cx,
const double cy,
const double cz,
const double lx,
17 const double ly,
const double lz,
const double dx,
const double dy,
22 bool IsInside(
const double x,
const double y,
const double z)
const override;
23 bool GetBoundingBox(
double& xmin,
double& ymin,
double& zmin,
double& xmax,
24 double& ymax,
double& zmax)
const override;
25 bool IsBox()
const override {
return true; }
35 bool SolidPanels(std::vector<Panel>& panels)
override;
40 double m_lX = 0., m_lY = 0., m_lZ = 0.;
42 std::array<double, 6> m_dis{{-1, -1, -1, -1, -1, -1}};
double GetHalfLengthZ() const override
Return the half-length along z.
void SetHalfLengthX(const double lx)
bool IsBox() const override
Return true if the solid is a box.
double GetHalfLengthY() const override
Return the half-length along y.
bool SolidPanels(std::vector< Panel > &panels) override
Retrieve the surface panels of the solid.
void SetHalfLengthZ(const double lz)
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.
double GetHalfLengthX() const override
Return the half-length along x.
double GetDiscretisationLevel(const Panel &panel) override
Retrieve the discretization level of a panel.
void SetHalfLengthY(const double ly)
Abstract base class for solids.