Carna
Version 3.3.2
|
Creates simple predefined ManagedMesh instances. More...
#include <MeshFactory.h>
Static Public Member Functions | |
static ManagedMesh< VertexType, uint8_t > & | createBox (float width, float height, float depth) |
Creates box with width, height and depth. The box is centered in \(\left(0, 0, 0\right)^\mathrm T\). | |
static ManagedMesh< VertexType, uint8_t > & | createBox (const math::Vector3f &size) |
static ManagedMesh< VertexType, uint16_t > & | createBall (float radius, unsigned int degree=3) |
Creates sphere with radius and a vertices number determined by degree. The ball is centered in \(\left(0, 0, 0\right)^\mathrm T\). More... | |
static ManagedMesh< VertexType, uint8_t > & | createPoint () |
Creates mesh that consists of a single point. | |
static ManagedMesh< VertexType, uint32_t > & | createFromSTL (const std::string &path) |
Creates mesh from an STL file. More... | |
static ManagedMesh< VertexType, uint32_t > & | createFromSTL (std::istream &stlStream) |
Creates simple predefined ManagedMesh instances.
VertexType | specifies the vertex type that is to be used to build the vertex buffers. |
Definition at line 56 of file MeshFactory.h.
|
static |
Creates sphere with radius and a vertices number determined by degree. The ball is centered in \(\left(0, 0, 0\right)^\mathrm T\).
Definition at line 182 of file MeshFactory.h.
|
static |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 119 of file MeshFactory.h.
|
inlinestatic |
Creates mesh from an STL file.
Definition at line 271 of file MeshFactory.h.
|
static |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 277 of file MeshFactory.h.
Documentation generated by Doxygen