From 67273a8486c31f2a2df425c5dd2d71cf888fd848 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Tue, 24 Nov 2015 10:17:32 +0100 Subject: Only add one north and southpol --- src/glsphere.cpp | 6 ++++-- 1 file 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 *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 *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(); } -- cgit v1.2.3-70-g09d2