From 1248c23423d9c9c7695cfee8889c23a284299759 Mon Sep 17 00:00:00 2001 From: Oliver Bock <oliver.bock@aei.mpg.de> Date: Fri, 16 Sep 2011 14:34:19 +0200 Subject: [PATCH] Move beam origins into pulsar's magnetosphere --- src/pulsaranimationwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pulsaranimationwidget.cpp b/src/pulsaranimationwidget.cpp index e3198a3..46118be 100644 --- a/src/pulsaranimationwidget.cpp +++ b/src/pulsaranimationwidget.cpp @@ -395,7 +395,7 @@ void PulsarAnimationWidget::paintGL() glPolygonMode(GL_FRONT_AND_BACK,GL_LINE); } - glTranslatef(0.0, 0.0, -m_pulsarBeamLength); + glTranslatef(0.0, 0.0, -(m_pulsarBeamLength + m_pulsarRadius + 0.1)); // draw first cone's outer layer glBegin(GL_TRIANGLE_FAN); @@ -446,7 +446,7 @@ void PulsarAnimationWidget::paintGL() glRotatef(m_pulsarRotationAngle - 90.0, 0.0, 0.0, 1.0); glRotatef(m_pulsarMagneticAxisInclination, 1.0, 0.0, 0.0); - glTranslatef(0.0, 0.0, -m_pulsarBeamLength); + glTranslatef(0.0, 0.0, -(m_pulsarBeamLength + m_pulsarRadius + 0.1)); // draw second cone's outer layer glBegin(GL_TRIANGLE_FAN); -- GitLab