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

Detailed Description

Mesh polygon.

#include <srl_mesh.hpp>

Inheritance diagram for SRL::Types::Polygon:
SRL::SGL::SglType< Polygon, POLYGON >

Public Member Functions

 Polygon ()
 Construct a new Polygon object.
 
 Polygon (const SRL::Math::Types::Vector3D &normal, const uint16_t vertices[4])
 Construct a new Polygon object.
 
const POLYGON * SglConstPtr () const
 Get pointer to SGL type.
 
POLYGON * SglPtr ()
 Get pointer to SGL type.
 

Public Attributes

SRL::Math::Types::Vector3D Normal
 Normal vector of the polygon.
 
uint16_t Vertices [4]
 Vertices of the polygon.