38 for (
unsigned i = 0; i < 3; i++)
41 for (
unsigned j = 0; j < 2; j++)
43 for (
unsigned k = 0; k < 2; k++)
56 return std::numeric_limits<unsigned>::max();
Definition of the Node class.
Collects error flags for mesh elements.
virtual bool testElementNodeOrder() const =0
static ElementErrorCode validate(const Element *e)
static bool isPntInElement(Node const *const *nodes, MathLib::Point3d const &pnt, double eps)
static unsigned identifyFace(Node const *const *, Node const *nodes[3])
Returns the ID of a face given an array of nodes.
static double computeVolume(Node const *const *_nodes)
Calculates the volume of a convex hexahedron by partitioning it into six tetrahedra.
static const unsigned edge_nodes[3][2]
Constant: Local node index table for edge.
double calcTriangleArea(MathLib::Point3d const &a, MathLib::Point3d const &b, MathLib::Point3d const &c)
bool isPointInTriangle(MathLib::Point3d const &p, MathLib::Point3d const &a, MathLib::Point3d const &b, MathLib::Point3d const &c, double eps_pnt_out_of_plane, double eps_pnt_out_of_tri, MathLib::TriangleTest algorithm)
bool hasZeroVolume(MeshLib::Element const &element)
Returns true if the element has zero length/area/volume.