39 pnt, *nodes[0], *nodes[1], *nodes[2], *nodes[3], eps) ||
41 pnt, *nodes[1], *nodes[4], *nodes[2], *nodes[3], eps) ||
43 pnt, *nodes[2], *nodes[4], *nodes[5], *nodes[3], eps));
51 for (
unsigned i = 1; i < 4; ++i)
56 error_code |= quad->validate();
Definition of the Node class.
Definition of the Quad class.
Collects error flags for mesh elements.
void set(ElementErrorFlag e)
Set a specific flag.
virtual const Element * getFace(unsigned i) const =0
Returns the i-th face of the element.
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 double computeVolume(Node const *const *element_nodes)
double calcTetrahedronVolume(MathLib::Point3d const &a, MathLib::Point3d const &b, MathLib::Point3d const &c, MathLib::Point3d const &d)
bool isPointInTetrahedron(MathLib::Point3d const &p, MathLib::Point3d const &a, MathLib::Point3d const &b, MathLib::Point3d const &c, MathLib::Point3d const &d, double eps)
bool hasZeroVolume(MeshLib::Element const &element)
Returns true if the element has zero length/area/volume.