Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
x
y
Typedefs
a
b
c
d
f
h
i
n
o
p
q
r
s
t
u
Enumerations
a
c
d
e
f
i
m
n
p
q
r
s
t
u
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
g
i
l
m
n
p
r
s
t
u
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Related Functions
c
e
h
i
m
o
p
q
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
x
z
Variables
a
b
c
e
g
i
l
m
n
p
r
s
t
v
x
y
Typedefs
a
b
c
d
e
f
h
i
l
m
n
p
q
r
s
t
u
Enumerator
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
src
extern
eigen3
demos
opengl
icosphere.h
Go to the documentation of this file.
1
// This file is part of Eigen, a lightweight C++ template library
2
// for linear algebra.
3
//
4
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
5
//
6
// This Source Code Form is subject to the terms of the Mozilla
7
// Public License v. 2.0. If a copy of the MPL was not distributed
8
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
10
#ifndef EIGEN_ICOSPHERE_H
11
#define EIGEN_ICOSPHERE_H
12
13
#include <Eigen/Core>
14
#include <vector>
15
16
class
IcoSphere
17
{
18
public
:
19
IcoSphere
(
unsigned
int
levels=1);
20
const
std::vector<Eigen::Vector3f>&
vertices
()
const
{
return
mVertices
; }
21
const
std::vector<int>&
indices
(
int
level)
const
;
22
void
draw
(
int
level);
23
protected
:
24
void
_subdivide
();
25
std::vector<Eigen::Vector3f>
mVertices
;
26
std::vector<std::vector<int>*>
mIndices
;
27
std::vector<int>
mListIds
;
28
};
29
30
#endif // EIGEN_ICOSPHERE_H
IcoSphere
Definition:
icosphere.h:16
IcoSphere::indices
const std::vector< int > & indices(int level) const
Definition:
icosphere.cpp:54
IcoSphere::mVertices
std::vector< Eigen::Vector3f > mVertices
Definition:
icosphere.h:25
IcoSphere::vertices
const std::vector< Eigen::Vector3f > & vertices() const
Definition:
icosphere.h:20
IcoSphere::mIndices
std::vector< std::vector< int > * > mIndices
Definition:
icosphere.h:26
IcoSphere::_subdivide
void _subdivide()
Definition:
icosphere.cpp:61
IcoSphere::mListIds
std::vector< int > mListIds
Definition:
icosphere.h:27
IcoSphere::IcoSphere
IcoSphere(unsigned int levels=1)
Definition:
icosphere.cpp:36
IcoSphere::draw
void draw(int level)
Definition:
icosphere.cpp:100
control_box_rst
Author(s): Christoph Rösmann
autogenerated on Wed Mar 2 2022 00:05:48