33#ifndef DART_MATH_ICOSPHERE_HPP_
34#define DART_MATH_ICOSPHERE_HPP_
The class Icosphere represents an icosphere where the subdivision and radius are configurable.
Definition Icosphere.hpp:50
S_ S
Definition Icosphere.hpp:53
std::size_t getNumSubdivisions() const
Returns the number of subdivisions of the icosphere.
Definition Icosphere-impl.hpp:121
typename Base::Vector3 Vector3
Definition Icosphere.hpp:56
static std::size_t getNumVertices(std::size_t subdivisions)
Returns the number of vertices of icosphere given subdivisions.
Definition Icosphere-impl.hpp:43
static std::size_t getNumEdges(std::size_t subdivisions)
Returns the number of edges of icosphere given subdivisions.
Definition Icosphere-impl.hpp:53
std::vector< Triangle > Triangles
Definition Icosphere.hpp:60
S getRadius() const
Returns the radius of the icosphere.
Definition Icosphere-impl.hpp:114
static std::pair< Vertices, Triangles > computeIcosahedron(S radius)
Returns vertices and faces of icosahedron given radius.
Definition Icosphere-impl.hpp:68
typename Base::Index Index
Definition Icosphere.hpp:55
typename Base::Normals Normals
Definition Icosphere.hpp:59
S mRadius
Radius of icosphere.
Definition Icosphere.hpp:92
typename Base::Triangle Triangle
Definition Icosphere.hpp:57
std::size_t mSubdivisions
Number of subdividing an icosahedron.
Definition Icosphere.hpp:95
void build()
Internal function to build icosphere given radius and subdivisions.
Definition Icosphere-impl.hpp:128
static std::size_t getNumTriangles(std::size_t subdivisions)
Returns the number of triangles of icosphere given subdivisions.
Definition Icosphere-impl.hpp:60
std::vector< Vector3 > Vertices
Definition Icosphere.hpp:58
This class represents triangle meshes.
Definition TriMesh.hpp:46
typename Base::Index Index
Definition TriMesh.hpp:51
typename Base::Normals Normals
Definition TriMesh.hpp:55
typename Base::Vector3 Vector3
Definition TriMesh.hpp:52
Eigen::Matrix< Index, 3, 1 > Triangle
Definition TriMesh.hpp:53
Definition BulletCollisionDetector.cpp:60