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
Orekit
Stavor
Commits
8766b55f
Commit
8766b55f
authored
Sep 11, 2014
by
Xavier
Browse files
Thicker orbits
parent
b65c6f0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
assets/www/huds/index_orbit.html
View file @
8766b55f
...
...
@@ -57,7 +57,7 @@
var
planes_radius
=
axis_radius
;
var
planes_width
=
axis_radius
*
4
;
var
spacecraft_radius
=
0.0
3
;
var
spacecraft_radius
=
0.0
5
;
...
...
@@ -210,7 +210,7 @@ function createOrbit(){
var
b
=
Math
.
sqrt
(
a
*
a
-
f
*
f
);
// Ellipse
var
material
=
new
THREE
.
LineBasicMaterial
({
color
:
orbit_color
,
opacity
:
1
});
var
material
=
new
THREE
.
LineBasicMaterial
({
color
:
orbit_color
,
opacity
:
1
,
linewidth
:
3
});
var
ellipse
=
new
THREE
.
EllipseCurve
(
0
,
f
,
b
,
a
,
0
,
2.0
*
Math
.
PI
,
false
);
var
ellipsePath
=
new
THREE
.
CurvePath
();
ellipsePath
.
add
(
ellipse
);
...
...
@@ -257,7 +257,7 @@ function includeProjection(){
var
vertArray
=
lineGeometry
.
vertices
;
vertArray
.
push
(
new
THREE
.
Vector3
(
spacecraft
.
position
.
x
,
spacecraft
.
position
.
y
,
spacecraft
.
position
.
z
),
new
THREE
.
Vector3
(
0
,
0
,
0
)
);
lineGeometry
.
computeLineDistances
();
var
lineMaterial
=
new
THREE
.
LineDashedMaterial
(
{
color
:
spacecraft_color
,
dashSize
:
0.02
,
gapSize
:
0.04
}
);
var
lineMaterial
=
new
THREE
.
LineDashedMaterial
(
{
color
:
spacecraft_color
,
dashSize
:
0.02
,
gapSize
:
0.04
,
linewidth
:
3
}
);
projection
=
new
THREE
.
Line
(
lineGeometry
,
lineMaterial
);
projection
.
name
=
"
PROJECTION
"
;
scene
.
add
(
projection
);
...
...
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