From 2ed55d0fe0a81f4a4aa05917ca9f5f0a1840e14a Mon Sep 17 00:00:00 2001
From: Oliver Bock <oliver.bock@aei.mpg.de>
Date: Tue, 5 Sep 2017 10:24:46 +0200
Subject: [PATCH] Shortened source axis and turned it red

---
 src/pulsaranimationwidget.cpp | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/pulsaranimationwidget.cpp b/src/pulsaranimationwidget.cpp
index 1e74818..c715051 100644
--- a/src/pulsaranimationwidget.cpp
+++ b/src/pulsaranimationwidget.cpp
@@ -329,23 +329,22 @@ void PulsarAnimationWidget::paintGL()
 
             // draw spin axis
             if(m_showRotationAxes) {
-                glPolygonMode(GL_FRONT_AND_BACK,GL_FILL);
-                glColor3f(1.0f, 1.0f, 1.0f);
+                glColor3f(1.0f, 0.0f, 0.0f);
                 glPushMatrix();
                 {
-                    glTranslatef(0.0, 0.0, -4.5);
-                    gluCylinder(m_quadricPulsarSpinAxis, 0.020, 0.020, 9.0, 32, 1);
+                    glTranslatef(0.0, 0.0, -2.0);
+                    gluCylinder(m_quadricPulsarSpinAxis, 0.020, 0.020, 4.0, 32, 1);
                 }
                 glPopMatrix();
                 glPushMatrix();
                 {
-                    glTranslatef(0.0, 0.0, -4.5);
+                    glTranslatef(0.0, 0.0, -2.0);
                     gluDisk(m_quadricPulsarSpinAxisTop1, 0, 0.020, 32, 8);
                 }
                 glPopMatrix();
                 glPushMatrix();
                 {
-                    glTranslatef(0.0, 0.0, 4.5);
+                    glTranslatef(0.0, 0.0, 2.0);
                     gluDisk(m_quadricPulsarSpinAxisTop2, 0, 0.020, 32, 8);
                 }
                 glPopMatrix();
-- 
GitLab