SOFA API  a658c2b0
Open source framework for multi-physics simuation
sofa::gl::ConeMesh< Segments > Struct Template Reference
Inheritance diagram for sofa::gl::ConeMesh< Segments >:

Public Attributes

std::array< type::Vec3, vertex_countvertices
 
std::array< Triangle, triangle_counttriangles
 
std::array< type::Vec3, vertex_countnormals {}
 

Static Public Attributes

static constexpr int vertex_count = Segments + 2
 
static constexpr int triangle_count = Segments * 2
 

Public Member Functions

constexpr ConeMesh (const type::Vec3 &base, const type::Vec3 &tip, double base_radius)
 

Attribute details

◆ normals

template<int Segments>
std::array<type::Vec3, vertex_count> sofa::gl::ConeMesh< Segments >::normals {}

◆ triangle_count

template<int Segments>
constexpr int sofa::gl::ConeMesh< Segments >::triangle_count = Segments * 2
staticconstexpr

◆ triangles

template<int Segments>
std::array<Triangle, triangle_count> sofa::gl::ConeMesh< Segments >::triangles

◆ vertex_count

template<int Segments>
constexpr int sofa::gl::ConeMesh< Segments >::vertex_count = Segments + 2
staticconstexpr

◆ vertices

template<int Segments>
std::array<type::Vec3, vertex_count> sofa::gl::ConeMesh< Segments >::vertices

Constructor details

◆ ConeMesh()

template<int Segments>
constexpr sofa::gl::ConeMesh< Segments >::ConeMesh ( const type::Vec3 base,
const type::Vec3 tip,
double  base_radius 
)
inlineconstexpr