12 std::vector<MeshLib::Element*>
const& elements(
_mesh.getElements());
13 std::size_t
const nElements(
_mesh.getNumberOfElements());
14 std::size_t
const mesh_dim(
_mesh.getDimension());
16 for (std::size_t k = 0; k < nElements; ++k)
28 double worst_ratio(1.0);
29 for (std::size_t i = 0; i < n_neighbors; ++i)
32 if (neighbor ==
nullptr)
38 (vol_a > vol_b) ? vol_b / vol_a : vol_a / vol_b;
39 if (ratio < worst_ratio)
virtual double getContent() const =0
Returns the length, area or volume of a 1D, 2D or 3D element.
virtual unsigned getNumberOfNeighbors() const =0
Get the number of neighbors for this element.
virtual constexpr unsigned getDimension() const =0
Get dimension of the mesh element.
virtual const Element * getNeighbor(unsigned i) const =0
Get the specified neighbor.