SaturnRingLibrary 0.9
SGL wrapper
 
Loading...
Searching...
No Matches
SRL::Types::Mesh Struct Reference

Detailed Description

3D mesh

#include <srl_mesh.hpp>

Inheritance diagram for SRL::Types::Mesh:
SRL::SGL::SglType< Mesh, PDATA >

Public Member Functions

 Mesh ()
 Construct a new empty mesh object.
 
 Mesh (const size_t &vertexCount, const size_t &polygonCount)
 Construct a new empty mesh object and initialize its arrays.
 
 Mesh (const size_t &vertexCount, SRL::Math::Types::Vector3D *vertices, const size_t &faceCount, Polygon *faces, Attribute *attributes)
 Construct a new mesh object from existing data.
 
 ~Mesh ()
 Destroy the Mesh object.
 
Meshoperator= (Mesh &&other) noexcept
 Move assignment operator.
 
const PDATA * SglConstPtr () const
 Get pointer to SGL type.
 
PDATA * SglPtr ()
 Get pointer to SGL type.
 

Public Attributes

AttributeAttributes
 Face attributes.
 
size_t FaceCount
 Number of faces.
 
PolygonFaces
 Mesh faces.
 
size_t VertexCount
 Number of vertices of the mesh.
 
SRL::Math::Types::Vector3D * Vertices
 Vertices of the mesh.