OGS
|
Functions | |
MeshLib::Element const * | getProjectedElement (std::vector< const MeshLib::Element * > const &elements, MathLib::Point3d const &node) |
double | getElevation (MeshLib::Element const &element, MathLib::Point3d const &node) |
double MeshToolsLib::ProjectPointOnMesh::getElevation | ( | MeshLib::Element const & | element, |
MathLib::Point3d const & | node ) |
Returns the z-coordinate of a point projected onto the plane defined by a mesh element.
Definition at line 57 of file ProjectPointOnMesh.cpp.
References MathLib::Point3d::asEigenVector3d(), MeshLib::Element::getNode(), and MeshLib::FaceRule::getSurfaceNormal().
Referenced by main(), and voteMatId().
MeshLib::Element const * MeshToolsLib::ProjectPointOnMesh::getProjectedElement | ( | std::vector< const MeshLib::Element * > const & | elements, |
MathLib::Point3d const & | node ) |
Returns the element in which the given node is located when projected onto a mesh, or nullptr if no such element was found.
Definition at line 21 of file ProjectPointOnMesh.cpp.
References GeoLib::CW, MeshLib::Element::getNodes(), GeoLib::getOrientation(), MeshLib::QUAD, and MeshLib::TRIANGLE.
Referenced by getProjectedElement(), and main().