$search

TomGine::tgShapeCreator Class Reference

#include <tgShapeCreator.h>

List of all members.

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

Detailed Description

Definition at line 23 of file tgShapeCreator.h.


Constructor & Destructor Documentation

tgShapeCreator::tgShapeCreator (  ) 

Definition at line 184 of file tgShapeCreator.cpp.


Member Function Documentation

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.


Member Data Documentation

Definition at line 28 of file tgShapeCreator.h.

Definition at line 32 of file tgShapeCreator.h.

Definition at line 30 of file tgShapeCreator.h.

Definition at line 33 of file tgShapeCreator.h.

Definition at line 27 of file tgShapeCreator.h.

Definition at line 26 of file tgShapeCreator.h.

Definition at line 25 of file tgShapeCreator.h.

Definition at line 31 of file tgShapeCreator.h.

Definition at line 29 of file tgShapeCreator.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


blort
Author(s): Michael Zillich, Thomas Mörwald, Johann Prankl, Andreas Richtsfeld, Bence Magyar (ROS version)
autogenerated on Fri Mar 1 16:57:58 2013