Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rugged
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
Rugged
Commits
976bfc1f
Commit
976bfc1f
authored
10 years ago
by
Luc Maisonobe
Browse files
Options
Downloads
Patches
Plain Diff
Improved activity diagrams.
parent
0e624fe9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
design/duvenhage-inner-recursion-activity-diagram.puml
+12
-7
12 additions, 7 deletions
design/duvenhage-inner-recursion-activity-diagram.puml
design/duvenhage-top-loop-activity-diagram.puml
+7
-7
7 additions, 7 deletions
design/duvenhage-top-loop-activity-diagram.puml
with
19 additions
and
14 deletions
design/duvenhage-inner-recursion-activity-diagram.puml
+
12
−
7
View file @
976bfc1f
...
...
@@ -29,21 +29,26 @@
skinparam ActivityFontSize 11
start
if (recursion depth > 30) then (yes)
if (recursion depth > 30
?
) then (yes)
: search failed;
stop
endif
if (start and end point on same pixel) then (yes)
: return pixel intersection;
if (compare start and end point) then (same pixel)
: intersection ⇦ pixel intersection, with bilinear model;
: return intersection;
note left
this is the nominal return,
at final recursion level
end note
stop
endif
:
compute kd-tree deepest
level
\n
containing
both s
tart and
end
points;
:compute kd-tree deepest
\n
level
sub-tile
containing
\n
both s
egment
endpoints;
if (compare segment and sub-tile maximum elevation) then (fully above)
: return null;
note
righ
t
note
lef
t
when the line-of-sight segment is fully above
Digital Elevation Model, we can safely reject
it and proceed to next segment
it and proceed
immediately
to next segment
end note
stop
endif
...
...
@@ -56,7 +61,7 @@
end note
repeat
:intersection ⇦ recurse(previous, crossing);
if (
found
intersection?) then (yes)
if (intersection
found
?) then (yes)
: return intersection;
stop
endif
...
...
This diff is collapsed.
Click to expand it.
design/duvenhage-top-loop-activity-diagram.puml
+
7
−
7
View file @
976bfc1f
...
...
@@ -34,10 +34,10 @@
: current point ⇦ null;
: hmax ⇦ tile maximum elevation;
while (current point is null)
: ent
ry
⇦ point at altitude hmax;
if (locate ent
ry
point) then (in selected tile)
:
curr
ent ⇦ point at altitude hmax;
if (locate
curr
ent point) then (in selected tile)
else (outside of selected tile)
: select tile containing ent
ry
point;
: select tile containing
curr
ent point;
: hmax ⇦ max(hmax, tile maximum elevation);
: current point ⇦ null;
endif
...
...
@@ -45,16 +45,16 @@
repeat
: exit ⇦ line-of-sight exit point from tile;
: intersection ⇦ Duvenhage(current, exit);
if (
found
intersection?) then (yes)
if (intersection
found
?) then (yes)
: return intersection;
stop
endif
if (tile exit
ed at side?
) then (
no
)
if (tile exit) then (
bottom
)
: searching ⇦ false;
else (
yes
)
else (
side
)
: forward point ⇦ point slightly after exit point;
: select tile containing forward point;
if (DEM traversed between\ncurrent and forward points) then (yes)
if (DEM traversed between\ncurrent and forward points
?
) then (yes)
: return current point;
note right
extremely rare case!
...
...
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