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

Detailed Description

3D smooths mesh

#include <srl_mesh.hpp>

Inheritance diagram for SRL::Types::SmoothMesh:
SRL::SGL::SglType< SmoothMesh, XPDATA >

Public Member Functions

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

Public Attributes

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