Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
einsteinathome
pulsatingscience
Commits
1248c234
Commit
1248c234
authored
Sep 16, 2011
by
Oliver Bock
Browse files
Move beam origins into pulsar's magnetosphere
parent
1ce2b8e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pulsaranimationwidget.cpp
View file @
1248c234
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment