SOFA API  a658c2b0
Open source framework for multi-physics simuation
sofa::gl::CoordinateFrame Struct Reference

Classes

struct  FrameAxisParameters
 
struct  MeshData
 

Public Attributes

CylMesh x_cylinder
 
ConMesh x_arrowhead
 
CylMesh y_cylinder
 
ConMesh y_arrowhead
 
CylMesh z_cylinder
 
ConMesh z_arrowhead
 

Static Public Attributes

static const int CYLINDER_SEGMENTS = 16
 
static constexpr int cylinder_vertex_count = CylMesh::vertex_count
 
static constexpr int cylinder_triangle_count = CylMesh::triangle_count
 
static constexpr int cone_vertex_count = ConMesh::vertex_count
 
static constexpr int cone_triangle_count = ConMesh::triangle_count
 
static constexpr int total_vertex_count = (cylinder_vertex_count + cone_vertex_count) * 3
 
static constexpr int total_triangle_count = (cylinder_triangle_count + cone_triangle_count) * 3
 

Public Member Functions

constexpr CoordinateFrame (const FrameAxisParameters &axisX, const FrameAxisParameters &axisY, const FrameAxisParameters &axisZ)
 
constexpr std::array< MeshData, 6 > get_mesh_components () const
 

Attribute details

◆ cone_triangle_count

constexpr int sofa::gl::CoordinateFrame::cone_triangle_count = ConMesh::triangle_count
staticconstexpr

◆ cone_vertex_count

constexpr int sofa::gl::CoordinateFrame::cone_vertex_count = ConMesh::vertex_count
staticconstexpr

◆ CYLINDER_SEGMENTS

const int sofa::gl::CoordinateFrame::CYLINDER_SEGMENTS = 16
inlinestatic

◆ cylinder_triangle_count

constexpr int sofa::gl::CoordinateFrame::cylinder_triangle_count = CylMesh::triangle_count
staticconstexpr

◆ cylinder_vertex_count

constexpr int sofa::gl::CoordinateFrame::cylinder_vertex_count = CylMesh::vertex_count
staticconstexpr

◆ total_triangle_count

constexpr int sofa::gl::CoordinateFrame::total_triangle_count = (cylinder_triangle_count + cone_triangle_count) * 3
staticconstexpr

◆ total_vertex_count

constexpr int sofa::gl::CoordinateFrame::total_vertex_count = (cylinder_vertex_count + cone_vertex_count) * 3
staticconstexpr

◆ x_arrowhead

ConMesh sofa::gl::CoordinateFrame::x_arrowhead

◆ x_cylinder

CylMesh sofa::gl::CoordinateFrame::x_cylinder

◆ y_arrowhead

ConMesh sofa::gl::CoordinateFrame::y_arrowhead

◆ y_cylinder

CylMesh sofa::gl::CoordinateFrame::y_cylinder

◆ z_arrowhead

ConMesh sofa::gl::CoordinateFrame::z_arrowhead

◆ z_cylinder

CylMesh sofa::gl::CoordinateFrame::z_cylinder

Constructor details

◆ CoordinateFrame()

constexpr sofa::gl::CoordinateFrame::CoordinateFrame ( const FrameAxisParameters axisX,
const FrameAxisParameters axisY,
const FrameAxisParameters axisZ 
)
inlineconstexpr

Function details

◆ get_mesh_components()

constexpr std::array<MeshData, 6> sofa::gl::CoordinateFrame::get_mesh_components ( ) const
inlineconstexpr