TR-mbed 1.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
IcoSphere Class Reference

#include <icosphere.h>

Public Member Functions

 IcoSphere (unsigned int levels=1)
 
const std::vector< Eigen::Vector3f > & vertices () const
 
const std::vector< int > & indices (int level) const
 
void draw (int level)
 

Protected Member Functions

void _subdivide ()
 

Protected Attributes

std::vector< Eigen::Vector3f > mVertices
 
std::vector< std::vector< int > * > mIndices
 
std::vector< intmListIds
 

Constructor & Destructor Documentation

◆ IcoSphere()

IcoSphere::IcoSphere ( unsigned int  levels = 1)

Member Function Documentation

◆ _subdivide()

void IcoSphere::_subdivide ( void  )
protected

◆ draw()

void IcoSphere::draw ( int  level)

◆ indices()

const std::vector< int > & IcoSphere::indices ( int  level) const

◆ vertices()

const std::vector< Eigen::Vector3f > & IcoSphere::vertices ( ) const
inline

Member Data Documentation

◆ mIndices

std::vector<std::vector<int>*> IcoSphere::mIndices
protected

◆ mListIds

std::vector<int> IcoSphere::mListIds
protected

◆ mVertices

std::vector<Eigen::Vector3f> IcoSphere::mVertices
protected

The documentation for this class was generated from the following files: