Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Stavor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Orekit
Stavor
Commits
4896d41a
Commit
4896d41a
authored
10 years ago
by
Xavier Gibert
Browse files
Options
Downloads
Patches
Plain Diff
added second ref line to spherical coordinates
parent
ea918f79
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
assets/www/index.html
+1
-1
1 addition, 1 deletion
assets/www/index.html
assets/www/modules/angles.js
+12
-0
12 additions, 0 deletions
assets/www/modules/angles.js
with
14 additions
and
1 deletion
.gitignore
+
1
−
0
View file @
4896d41a
...
...
@@ -16,3 +16,4 @@
/assets/www/modules/angles.js~
/assets/www/modules/earth.js~
/assets/www/modules/sun.js~
/assets/www/modules/view.js~
This diff is collapsed.
Click to expand it.
assets/www/index.html
+
1
−
1
View file @
4896d41a
...
...
@@ -75,7 +75,7 @@ This three.js demo is part of a collection at
//var keyboard = new THREEx.KeyboardState();
var
clock
=
new
THREE
.
Clock
();
var
spacecraft
,
arrow_vel
,
arrow_accel
,
arrow_momentum
,
target_a
,
vector_a
,
direction_a
;
var
long_arc
,
lat_arc
,
long_sprite
,
lat_sprite
,
lineAngle
,
lineSpheric
;
var
long_arc
,
lat_arc
,
long_sprite
,
lat_sprite
,
lineAngle
,
lineSpheric
,
lineSpheric2
;
var
vectors_arc
,
vectors_sprite
;
var
origin
=
new
THREE
.
Vector3
(
0
,
0
,
0
);
...
...
This diff is collapsed.
Click to expand it.
assets/www/modules/angles.js
+
12
−
0
View file @
4896d41a
...
...
@@ -90,6 +90,14 @@ function initAngles(){
var
lineMaterial
=
new
THREE
.
LineDashedMaterial
(
{
color
:
arc_color
,
dashSize
:
1
,
gapSize
:
3
}
);
lineSpheric
=
new
THREE
.
Line
(
lineGeometry
,
lineMaterial
);
scene
.
add
(
lineSpheric
);
//Set discontinued lines
var
lineGeometry
=
new
THREE
.
Geometry
();
var
vertArray
=
lineGeometry
.
vertices
;
vertArray
.
push
(
sphcoord_cross
.
clone
(),
new
THREE
.
Vector3
(
0
,
0
,
0
)
);
lineGeometry
.
computeLineDistances
();
var
lineMaterial
=
new
THREE
.
LineDashedMaterial
(
{
color
:
arc_color
,
dashSize
:
1
,
gapSize
:
3
}
);
lineSpheric2
=
new
THREE
.
Line
(
lineGeometry
,
lineMaterial
);
scene
.
add
(
lineSpheric2
);
//create longitude arc
...
...
@@ -281,6 +289,10 @@ function updateAngles(){
lineSpheric
.
geometry
.
computeLineDistances
();
lineSpheric
.
geometry
.
verticesNeedUpdate
=
true
;
lineSpheric2
.
geometry
.
vertices
[
0
].
set
(
sphcoord_cross
.
x
,
sphcoord_cross
.
y
,
sphcoord_cross
.
z
);
lineSpheric2
.
geometry
.
computeLineDistances
();
lineSpheric2
.
geometry
.
verticesNeedUpdate
=
true
;
//update longitude arc
scene
.
remove
(
long_arc
);
var
spline
=
new
THREE
.
QuadraticBezierCurve3
(
sphcoord_cross
.
clone
(),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment