#include <tgShapeCreator.h>
Public Member Functions | |
void | CreateBox (tgModel &model, float x, float y, float z) |
void | CreateCone (tgModel &model, float radius, float height, int slices, int stacks, bool closed) |
void | CreateConvexHull (tgModel &model, std::vector< vec3 > points) |
void | CreateCylinder (tgModel &model, float radius, float height, int slices, int stacks, bool closed) |
void | CreateSphere (tgModel &model, float radius, int subdevisions, int method=0) |
tgShapeCreator () | |
void | TriangulatePolygon (tgModel &model, std::vector< vec3 > points) |
Private Member Functions | |
void | init_icosahedron () |
void | init_octahedron () |
void | init_tetrahedron () |
int | search_midpoint (int index_start, int index_end) |
void | subdivide () |
Private Attributes | |
int | edge_walk |
int * | end |
int * | faces |
int * | midpoint |
int | n_edges |
int | n_faces |
int | n_vertices |
int * | start |
float * | vertices |
Definition at line 23 of file tgShapeCreator.h.
Definition at line 184 of file tgShapeCreator.cpp.
void tgShapeCreator::CreateBox | ( | tgModel & | model, |
float | x, | ||
float | y, | ||
float | z | ||
) |
Definition at line 242 of file tgShapeCreator.cpp.
void tgShapeCreator::CreateCone | ( | tgModel & | model, |
float | radius, | ||
float | height, | ||
int | slices, | ||
int | stacks, | ||
bool | closed | ||
) |
Definition at line 380 of file tgShapeCreator.cpp.
void TomGine::tgShapeCreator::CreateConvexHull | ( | tgModel & | model, |
std::vector< vec3 > | points | ||
) |
void tgShapeCreator::CreateCylinder | ( | tgModel & | model, |
float | radius, | ||
float | height, | ||
int | slices, | ||
int | stacks, | ||
bool | closed | ||
) |
Definition at line 294 of file tgShapeCreator.cpp.
void tgShapeCreator::CreateSphere | ( | tgModel & | model, |
float | radius, | ||
int | subdevisions, | ||
int | method = 0 |
||
) |
Definition at line 192 of file tgShapeCreator.cpp.
void tgShapeCreator::init_icosahedron | ( | ) | [private] |
Definition at line 45 of file tgShapeCreator.cpp.
void tgShapeCreator::init_octahedron | ( | ) | [private] |
Definition at line 27 of file tgShapeCreator.cpp.
void tgShapeCreator::init_tetrahedron | ( | ) | [private] |
Definition at line 10 of file tgShapeCreator.cpp.
int tgShapeCreator::search_midpoint | ( | int | index_start, |
int | index_end | ||
) | [private] |
Definition at line 92 of file tgShapeCreator.cpp.
void tgShapeCreator::subdivide | ( | ) | [private] |
Definition at line 133 of file tgShapeCreator.cpp.
void tgShapeCreator::TriangulatePolygon | ( | tgModel & | model, |
std::vector< vec3 > | points | ||
) |
Definition at line 468 of file tgShapeCreator.cpp.
int TomGine::tgShapeCreator::edge_walk [private] |
Definition at line 28 of file tgShapeCreator.h.
int* TomGine::tgShapeCreator::end [private] |
Definition at line 32 of file tgShapeCreator.h.
int* TomGine::tgShapeCreator::faces [private] |
Definition at line 30 of file tgShapeCreator.h.
int* TomGine::tgShapeCreator::midpoint [private] |
Definition at line 33 of file tgShapeCreator.h.
int TomGine::tgShapeCreator::n_edges [private] |
Definition at line 27 of file tgShapeCreator.h.
int TomGine::tgShapeCreator::n_faces [private] |
Definition at line 26 of file tgShapeCreator.h.
int TomGine::tgShapeCreator::n_vertices [private] |
Definition at line 25 of file tgShapeCreator.h.
int* TomGine::tgShapeCreator::start [private] |
Definition at line 31 of file tgShapeCreator.h.
float* TomGine::tgShapeCreator::vertices [private] |
Definition at line 29 of file tgShapeCreator.h.