35 pnt, *nodes[0], *nodes[1], *nodes[2], *nodes[4], eps) ||
37 pnt, *nodes[0], *nodes[2], *nodes[3], *nodes[4], eps));
45 std::unique_ptr<MeshLib::Quad const>
const base{
49 error_code |= base->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 double computeVolume(Node const *const *element_nodes)
static bool isPntInElement(Node const *const *nodes, MathLib::Point3d const &pnt, double eps)
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.