diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-11-24 10:17:32 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-11-24 10:19:12 +0100 |
| commit | 67273a8486c31f2a2df425c5dd2d71cf888fd848 (patch) | |
| tree | 3a6e242dff382ad30507ef1bc8abc4943a995b04 /src/glsphere.cpp | |
| parent | 5c3f1612edc6cc19de2d56132b98be67102cb78a (diff) | |
| download | Multimedia-67273a8486c31f2a2df425c5dd2d71cf888fd848.tar.gz Multimedia-67273a8486c31f2a2df425c5dd2d71cf888fd848.zip | |
Only add one north and southpol
Diffstat (limited to 'src/glsphere.cpp')
| -rw-r--r-- | src/glsphere.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/glsphere.cpp b/src/glsphere.cpp index 1a40540..e80f43a 100644 --- a/src/glsphere.cpp +++ b/src/glsphere.cpp @@ -22,9 +22,10 @@ void GLSphere::makeSurface(QVector<GLPoint> *pointContainer, m_firstPoint = m_points->size(); + m_points->append(GLPoint(m_radius * northpol, northpol, t0, m_color)); + for (int slice = 1; slice < m_slices; slice += 2) { - m_points->append(GLPoint(m_radius * northpol, northpol, t0, m_color)); for (int stack = 1; stack < m_stacks; stack++) { @@ -36,9 +37,10 @@ void GLSphere::makeSurface(QVector<GLPoint> *pointContainer, } - m_points->append(GLPoint(m_radius * southpol, southpol, t0, m_color)); } + m_points->append(GLPoint(m_radius * southpol, southpol, t0, m_color)); + m_nextPoint = m_points->size(); } |
