47 #ifndef AI_STANDARD_SHAPES_H_INC
48 #define AI_STANDARD_SHAPES_H_INC
51 # pragma GCC system_header
82 unsigned int numIndices);
85 static aiMesh* MakeMesh (
unsigned int (*GenerateFunc)
86 (std::vector<aiVector3D>&));
88 static aiMesh* MakeMesh (
unsigned int (*GenerateFunc)
89 (std::vector<aiVector3D>&,
bool));
91 static aiMesh* MakeMesh (
unsigned int n,
void (*GenerateFunc)
92 (
unsigned int,std::vector<aiVector3D>&));
103 std::vector<aiVector3D>& positions,
104 bool polygons =
false);
113 std::vector<aiVector3D>& positions);
124 std::vector<aiVector3D>& positions,
125 bool polygons =
false);
135 std::vector<aiVector3D>& positions);
145 std::vector<aiVector3D>& positions);
156 std::vector<aiVector3D>& positions);
185 static void MakeCone(ai_real height,ai_real radius1,
186 ai_real radius2,
unsigned int tess,
187 std::vector<aiVector3D>& positions,
bool bOpen=
false);
201 std::vector<aiVector3D>& positions);
206 #endif // !! AI_STANDARD_SHAPES_H_INC
static unsigned int MakeHexahedron(std::vector< aiVector3D > &positions, bool polygons=false)
Generates a hexahedron (cube)
static unsigned int MakeOctahedron(std::vector< aiVector3D > &positions)
Generates an octahedron.
static void MakeSphere(unsigned int tess, std::vector< aiVector3D > &positions)
Generates a sphere.
static void MakeCircle(ai_real radius, unsigned int tess, std::vector< aiVector3D > &positions)
Generates a flat circle.
Helper class to generate vertex buffers for standard geometric shapes, such as cylinders,...
Definition: StandardShapes.h:67
3D vector structure, including operators when compiling in C++
static unsigned int MakeDodecahedron(std::vector< aiVector3D > &positions, bool polygons=false)
Generates a dodecahedron.
static aiMesh * MakeMesh(const std::vector< aiVector3D > &positions, unsigned int numIndices)
static unsigned int MakeTetrahedron(std::vector< aiVector3D > &positions)
Generates a tetrahedron.
static void MakeCone(ai_real height, ai_real radius1, ai_real radius2, unsigned int tess, std::vector< aiVector3D > &positions, bool bOpen=false)
Generates a cone or a cylinder, either open or closed.
static unsigned int MakeIcosahedron(std::vector< aiVector3D > &positions)
Generates an icosahedron.
Definition: ai_assert.h:50
enum aiMorphingMethod
Definition: mesh.h:575