Skip to content

raisim::fem::TetMesh ​

struct · #include <raisim/fem/LinearElasticity.hpp>

Public types ​

Tetrahedron ​

cpp
using Tetrahedron = std::array<unsigned int, 4>

Static member functions ​

load static ​

cpp
static TetMesh load(const std::string &path, double scale=1.0)

ASCII Gmsh 2.2/4.1, Medit .mesh, or legacy ASCII VTK tetrahedra. Throws on invalid input.

box static ​

cpp
static TetMesh box(
    const Vec<3> &size,
    const std::array<unsigned int, 3> &cells)

Public attributes ​

vertices ​

cpp
std::vector<Vec<3>> vertices

tetrahedra ​

cpp
std::vector<Tetrahedron> tetrahedra

regions ​

cpp
std::vector<int> regions

Optional region per tetrahedron: physical tag in Gmsh 2.2, volume entity tag in 4.1, Medit reference.

RaiSim — physics for robotics and AI.