#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) |
~tgShapeCreator () | |
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.
Definition at line 192 of file tgShapeCreator.cpp.
void tgShapeCreator::CreateBox | ( | tgModel & | model, |
float | x, | ||
float | y, | ||
float | z | ||
) |
Definition at line 249 of file tgShapeCreator.cpp.
void tgShapeCreator::CreateCone | ( | tgModel & | model, |
float | radius, | ||
float | height, | ||
int | slices, | ||
int | stacks, | ||
bool | closed | ||
) |
Definition at line 387 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 301 of file tgShapeCreator.cpp.
void tgShapeCreator::CreateSphere | ( | tgModel & | model, |
float | radius, | ||
int | subdevisions, | ||
int | method = 0 |
||
) |
Definition at line 199 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 475 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.