SOFA API  7226d276
Open source framework for multi-physics simuation
sofa::core::visual::DrawElementMesh< sofa::geometry::Tetrahedron > Struct Reference

#include <DrawMesh.h>

Inheritance diagram for sofa::core::visual::DrawElementMesh< sofa::geometry::Tetrahedron >:

Public Attributes

friend BaseDrawMesh
 
- Public Attributes inherited from sofa::core::visual::BaseDrawMesh< DrawElementMesh< sofa::geometry::Tetrahedron >, 4 >
SReal elementSpace
 

Static Public Attributes

static constexpr std::size_t NumberTrianglesInTetrahedron = 4
 
static constexpr ColorContainer defaultColors
 
- Static Public Attributes inherited from sofa::core::visual::BaseDrawMesh< DrawElementMesh< sofa::geometry::Tetrahedron >, 4 >
static constexpr std::size_t NumberColors
 

Additional Inherited Members

- Protected Attributes inherited from sofa::core::visual::BaseDrawMesh< DrawElementMesh< sofa::geometry::Tetrahedron >, 4 >
std::array< sofa::type::vector< sofa::type::Vec3 >, NumberColors > renderedPoints
 Pre-allocated point buffers for rendering different color channels. More...
 
- Public Member Functions inherited from sofa::core::visual::BaseDrawMesh< DrawElementMesh< sofa::geometry::Tetrahedron >, 4 >
void drawAllElements (sofa::helper::visual::DrawTool *drawTool, const PositionContainer &position, sofa::core::topology::BaseMeshTopology *topology, const ColorContainer &colors=Derived::defaultColors)
 Draws all elements of the mesh using provided colors. More...
 
void drawSomeElements (sofa::helper::visual::DrawTool *drawTool, const PositionContainer &position, sofa::core::topology::BaseMeshTopology *topology, const IndicesContainer &elementIndices, const ColorContainer &colors=Derived::defaultColors)
 Draws a subset of elements of the mesh using provided colors. More...
 
- Protected Member Functions inherited from sofa::core::visual::BaseDrawMesh< DrawElementMesh< sofa::geometry::Tetrahedron >, 4 >
PositionType applyElementSpace (const PositionType &position, const PositionType &elementCenter) const
 
- Static Protected Member Functions inherited from sofa::core::visual::BaseDrawMesh< DrawElementMesh< sofa::geometry::Tetrahedron >, 4 >
static PositionContainer::value_type elementCenter (const PositionContainer &position, const ElementType &element)
 

Attribute details

◆ BaseDrawMesh

◆ defaultColors

Initial value:
{
}
constexpr static const RGBAColor & azure()
Definition: RGBAColor.h:300
constexpr static const RGBAColor & cyan()
Definition: RGBAColor.h:283
constexpr static const RGBAColor & blue()
Definition: RGBAColor.h:282
constexpr static const RGBAColor & black()
Definition: RGBAColor.h:279

◆ NumberTrianglesInTetrahedron

constexpr std::size_t sofa::core::visual::DrawElementMesh< sofa::geometry::Tetrahedron >::NumberTrianglesInTetrahedron = 4
staticconstexpr