#include <Tetrahedron.h>
Static Public Attributes | |
static constexpr sofa::Size | NumberOfNodes = 4 |
static constexpr ElementType | Element_type = ElementType::TETRAHEDRON |
Public Member Functions | |
Tetrahedron ()=delete | |
Static Public Member Functions | |
template<typename Node , typename T = std::decay_t<decltype(*std::begin(std::declval<Node>()))>, typename = std::enable_if_t<std::is_scalar_v<T>>> | |
static constexpr auto | volume (const Node &n0, const Node &n1, const Node &n2, const Node &n3) |
Compute the volume of a tetrahedron. More... | |
|
staticconstexpr |
|
staticconstexpr |
|
delete |
|
inlinestaticconstexpr |
Compute the volume of a tetrahedron.
Node | a container of the type sofa::type::Vec3 (needed for cross(), dot(), operator-) |
T | scalar |
n0,n1,n2,n3,n4 | nodes of the tetrahedron |