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
d13faf25
Commit
d13faf25
authored
Jan 27, 2009
by
Oliver Bock
Browse files
Pulsar orbital plane should lower than companion's (change of order required)
parent
129584a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pulsaranimationwidget.cpp
View file @
d13faf25
...
...
@@ -278,16 +278,6 @@ void PulsarAnimationWidget::paintGL()
if
(
m_cameraInteraction
)
{
glMaterialfv
(
GL_FRONT
,
GL_AMBIENT_AND_DIFFUSE
,
translucent
);
// pulsar
glPushMatrix
();
glRotatef
(
90.0
f
,
1.0
f
,
0.0
f
,
0.0
f
);
glTranslatef
(
0.0
f
,
0.0
f
,
-
0.1
f
);
gluDisk
(
m_quadricPulsarOrbitPlane
,
m_pulsarSemiMajorAxis
-
0.25
f
,
m_pulsarSemiMajorAxis
+
0.25
f
,
64
,
1
);
glPopMatrix
();
// companion
glPushMatrix
();
glRotatef
(
90.0
f
,
1.0
f
,
0.0
f
,
0.0
f
);
...
...
@@ -297,6 +287,16 @@ void PulsarAnimationWidget::paintGL()
m_companionSemiMajorAxis
+
0.25
f
,
64
,
1
);
glPopMatrix
();
// pulsar
glPushMatrix
();
glRotatef
(
90.0
f
,
1.0
f
,
0.0
f
,
0.0
f
);
glTranslatef
(
0.0
f
,
0.0
f
,
0.1
f
);
gluDisk
(
m_quadricPulsarOrbitPlane
,
m_pulsarSemiMajorAxis
-
0.25
f
,
m_pulsarSemiMajorAxis
+
0.25
f
,
64
,
1
);
glPopMatrix
();
}
}
...
...
Write
Preview
Supports
Markdown
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