22 for (
unsigned j = 0; j < nFaces; ++j)
30 Eigen::Vector3d
const cx = x - cc;
Definition of the Element class.
Eigen::Vector3d const & asEigenVector3d() const
static bool testElementNodeOrder(Element const &e)
virtual unsigned getNumberOfFaces() const =0
Get the number of faces for this element.
virtual const Element * getFace(unsigned i) const =0
Returns the i-th face of the element.
virtual const Node * getNode(unsigned idx) const =0
static Eigen::Vector3d getSurfaceNormal(Element const &e)
Returns the surface normal of a 2D element.
MathLib::Point3d getCenterOfGravity(Element const &element)
Calculates the center of gravity for the mesh element.