From edec5a4f20d341b2c5bc7663db293e941db60dba Mon Sep 17 00:00:00 2001 From: Oliver Bock Date: Fri, 16 Sep 2011 18:38:26 +0200 Subject: [PATCH] Increase length of axes (magnetic axis is supposed to stick out of cone) --- src/pulsaranimationwidget.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pulsaranimationwidget.cpp b/src/pulsaranimationwidget.cpp index 32e14b6..2f719b2 100644 --- a/src/pulsaranimationwidget.cpp +++ b/src/pulsaranimationwidget.cpp @@ -333,19 +333,19 @@ void PulsarAnimationWidget::paintGL() glColor3f(1.0f, 1.0f, 1.0f); glPushMatrix(); { - glTranslatef(0.0, 0.0, -4.0); - gluCylinder(m_quadricPulsarSpinAxis, 0.020, 0.020, 8.0, 32, 1); + glTranslatef(0.0, 0.0, -4.5); + gluCylinder(m_quadricPulsarSpinAxis, 0.020, 0.020, 9.0, 32, 1); } glPopMatrix(); glPushMatrix(); { - glTranslatef(0.0, 0.0, -4.0); + glTranslatef(0.0, 0.0, -4.5); gluDisk(m_quadricPulsarSpinAxisTop1, 0, 0.020, 32, 8); } glPopMatrix(); glPushMatrix(); { - glTranslatef(0.0, 0.0, 4.0); + glTranslatef(0.0, 0.0, 4.5); gluDisk(m_quadricPulsarSpinAxisTop2, 0, 0.020, 32, 8); } glPopMatrix(); @@ -376,19 +376,19 @@ void PulsarAnimationWidget::paintGL() glColor3f(1.0f, 1.0f, 0.0f); glPushMatrix(); { - glTranslatef(0.0, 0.0, -4.0); - gluCylinder(m_quadricPulsarMagneticAxis, 0.020, 0.020, 8.0, 32, 1); + glTranslatef(0.0, 0.0, -4.5); + gluCylinder(m_quadricPulsarMagneticAxis, 0.020, 0.020, 9.0, 32, 1); } glPopMatrix(); glPushMatrix(); { - glTranslatef(0.0, 0.0, -4.0); + glTranslatef(0.0, 0.0, -4.5); gluDisk(m_quadricPulsarSpinAxisTop1, 0, 0.020, 32, 8); } glPopMatrix(); glPushMatrix(); { - glTranslatef(0.0, 0.0, 4.0); + glTranslatef(0.0, 0.0, 4.5); gluDisk(m_quadricPulsarSpinAxisTop2, 0, 0.020, 32, 8); } glPopMatrix(); -- GitLab