#include <icosphere.h>
Public Member Functions | |
void | draw (int level) |
IcoSphere (unsigned int levels=1) | |
const std::vector< int > & | indices (int level) const |
const std::vector < Eigen::Vector3f > & | vertices () const |
Protected Member Functions | |
void | _subdivide () |
Protected Attributes | |
std::vector< std::vector< int > * > | mIndices |
std::vector< int > | mListIds |
std::vector< Eigen::Vector3f > | mVertices |
Definition at line 31 of file icosphere.h.
IcoSphere::IcoSphere | ( | unsigned int | levels = 1 | ) |
Definition at line 51 of file icosphere.cpp.
void IcoSphere::_subdivide | ( | void | ) | [protected] |
Definition at line 76 of file icosphere.cpp.
void IcoSphere::draw | ( | int | level | ) |
Definition at line 115 of file icosphere.cpp.
const std::vector< int > & IcoSphere::indices | ( | int | level | ) | const |
Definition at line 69 of file icosphere.cpp.
const std::vector<Eigen::Vector3f>& IcoSphere::vertices | ( | ) | const [inline] |
Definition at line 35 of file icosphere.h.
std::vector<std::vector<int>*> IcoSphere::mIndices [protected] |
Definition at line 41 of file icosphere.h.
std::vector<int> IcoSphere::mListIds [protected] |
Definition at line 42 of file icosphere.h.
std::vector<Eigen::Vector3f> IcoSphere::mVertices [protected] |
Definition at line 40 of file icosphere.h.