21 Eigen::Vector3d
const cc =
24 for (
unsigned j = 0; j < nFaces; ++j)
33 Eigen::Vector3d
const cx = x - cc;
Definition of the Element class.
Definition of the Node class.
const T * getCoords() const
static bool testElementNodeOrder(Element const &e)
virtual const Node * getNode(unsigned idx) const =0
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.
static Eigen::Vector3d getSurfaceNormal(Element const &e)
Returns the surface normal of a 2D element.
MeshLib::Node getCenterOfGravity(Element const &element)
Calculates the center of gravity for the mesh element.