|
Medusa
1.1
Coordinate Free Mehless Method implementation
|
|
Go to the documentation of this file. 1 #ifndef MEDUSA_BITS_DOMAINS_BALLSHAPE_FWD_HPP_
2 #define MEDUSA_BITS_DOMAINS_BALLSHAPE_FWD_HPP_
23 template <
typename vec_t>
47 bool contains(
const vec_t& point)
const override {
51 std::pair<vec_t, vec_t>
bbox()
const override {
57 scalar_t step,
int internal_type,
int boundary_type)
const override;
59 const std::function<
scalar_t(vec_t)>& dr,
int type)
const override;
62 std::ostream&
print(std::ostream& os)
const override;
67 #endif // MEDUSA_BITS_DOMAINS_BALLSHAPE_FWD_HPP_
scalar_t margin_
Tolerance for the geometric operation of the domain.
Class for working with ball shaped domains.
Root namespace for the whole library.
double radius_
Radius of the ball.
Scalar scalar_t
Type of the elements, alias of Scalar.
Class representing domain discretization along with an associated shape.
DomainDiscretization< vec_t > discretizeBoundaryWithStep(scalar_t step, int type) const override
Returns a discretization of the boundary of this shape with approximately uniform distance step betwe...
std::pair< vec_t, vec_t > bbox() const override
Return the bounding box of the domain.
DomainDiscretization< vec_t > discretizeWithStep(scalar_t step, int internal_type, int boundary_type) const override
Returns a discretization of this shape with approximately uniform distance step between nodes.
const vec_t & center() const
Returns the position of the centre of the ball.
Base class for geometric shapes of domains.
std::ostream & print(std::ostream &os) const override
Output information about this shape to given output stream os.
BallShape< vec_t > * clone() const override
Polymorphic clone pattern.
DomainDiscretization< vec_t > discretizeBoundaryWithDensity(const std::function< scalar_t(vec_t)> &dr, int type) const override
Discretizes boundary with given density and fill engine.
bool contains(const vec_t &point) const override
Return true if point is not more than margin() outside the domain.
BallShape(const vec_t ¢er, double radius)
Constructs a d-dimensional ball defined by its center and radius.
vec_t center_
Center of the ball.
vec_t::Scalar scalar_t
Scalar data type used in computation.
scalar_t radius() const
Returns the radius of the ball.