Shape Struct
Struct representing geometric primitives and indices for various shapes. provides immutable, shared access to vertices and indices of the represented geometric shape. More...
Declaration
Derived Structs
| struct | Circle |
| struct | Cube |
| struct | Ellipse |
| struct | Grid |
|
A configurable grid shape for rendering reference lines in 3D space. More... | |
| struct | Line |
| struct | Rectangle |
| struct | Rhombus |
|
A 2D rhombus (diamond) shape primitive. More... | |
| struct | Triangle |
Public Constructors Index
| Shape (std::vector< Vertex > vertices, std::vector< unsigned int > indices) | |
|
Creates a new shape from the given vertices and indices. The data is copied into immutable shared vectors. More... | |
Public Destructor Index
| ~Shape ()=default | |
Public Member Functions Index
| helios::rendering::mesh::PrimitiveType | primitiveType () const noexcept=0 |
Public Member Attributes Index
| std::shared_ptr< const std::vector< Vertex > > | vertices = {} |
|
Shared pointer to an immutable vector of vertices for this shape. More... | |
| std::shared_ptr< const std::vector< unsigned int > > | indices = {} |
|
Shared pointer to an immutable vector of indices for this shape. More... | |
Description
Struct representing geometric primitives and indices for various shapes. provides immutable, shared access to vertices and indices of the represented geometric shape.
Definition at line 24 of file Shape.ixx.
Public Constructors
Shape()
| inline |
Creates a new shape from the given vertices and indices. The data is copied into immutable shared vectors.
- Parameters
-
vertices A vector of vertices representing the shape's geometry
indices A vector of unsigned integers representing the shape's indices.
Definition at line 45 of file Shape.ixx.
References indices and vertices.
Referenced by helios::rendering::asset::shape::basic::Circle::Circle, helios::rendering::asset::shape::basic::Cube::Cube, helios::rendering::asset::shape::basic::Ellipse::Ellipse, helios::rendering::asset::shape::basic::Line::Line, helios::rendering::asset::shape::basic::Rectangle::Rectangle, helios::rendering::asset::shape::basic::Rhombus::Rhombus and helios::rendering::asset::shape::basic::Triangle::Triangle.
Public Member Functions
primitiveType()
| nodiscard noexcept |
Public Member Attributes
indices
|
vertices
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.