Newer
Older
* Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "PointRule1.h"
#include "MathLib/Point3d.h"
#include "MeshLib/Node.h"
namespace MeshLib {
const unsigned PointRule1::edge_nodes[1][1] =
{
double PointRule1::computeVolume(Node const* const* /*_nodes*/)
bool PointRule1::isPntInElement(Node const* const* nodes,
MathLib::Point3d const& pnt, double eps)
double const dist = MathLib::sqrDist(*nodes[0], pnt);
}
unsigned PointRule1::identifyFace(Node const* const* _nodes, Node* nodes[1])
{
}
ElementErrorCode PointRule1::validate(const Element* e)
{
error_code[ElementErrorFlag::ZeroVolume] = hasZeroVolume(*e);