(implementation)
Line 1: Line 1:
cases to foresee:
+
== block detection ==
0. starting the road, previous dot has one connection
+
1. starting the road, previous dot has >1 connections > crossroad
+
2. along the road, current dot has two connections
+
3. along the road, current dot has >2 connections > crossroad
+
4. end of the road, current dot has one connection
+
5. end of the road, current dot has >1 connections > crossroad
+
  
== implementation ==
+
=== sketches ===
  
'''Isle::collect_oriented_segments(Road* r)'''
+
[[File:DC scan 0001.jpeg|150px]]
 +
[[File:DC scan 0002.jpeg|300px]]
 +
[[File:DC scan 0003.jpeg|300px]]
 +
[[File:DC scan 0004.jpeg|300px]]
 +
[[File:DC scan 0005.jpeg|150px]]
 +
[[File:DC scan 0006.jpeg|300px]]
 +
[[File:DC scan 0007.jpeg|300px]]
 +
[[File:DC scan 0008.jpeg|300px]]
 +
[[File:DC scan 0009.jpeg|150px]]
  
cases to foresee:
+
=== implementation ===
 +
 
 +
'''Isle::collect_oriented_segments(Road* r)'''
 +
 +
cases to foresee:
 
  0. starting the road, previous dot has one connection
 
  0. starting the road, previous dot has one connection
 
  1. starting the road, previous dot has >1 connections > crossroad
 
  1. starting the road, previous dot has >1 connections > crossroad

Revision as of 09:16, 11 April 2017

block detection

sketches

DC scan 0001.jpeg DC scan 0002.jpeg DC scan 0003.jpeg DC scan 0004.jpeg DC scan 0005.jpeg DC scan 0006.jpeg DC scan 0007.jpeg DC scan 0008.jpeg DC scan 0009.jpeg

implementation

Isle::collect_oriented_segments(Road* r)

cases to foresee:
0. starting the road, previous dot has one connection
1. starting the road, previous dot has >1 connections > crossroad
2. along the road, current dot has two connections 
3. along the road, current dot has >2 connections > crossroad
4. end of the road, current dot has one connection
5. end of the road, current dot has >1 connections > crossroad

A       B       C
o ----> o ----> o
        ^
        |
        |
        D

[f]  [f]  [b]  [b]  [f]
AB > BC > CB > BA > AB

[f]  [b]  [f]  [f]  [b]  [b]  [f]
AB > BD > DB > BC > CB > BA > AB


A       B       C
o ----> o ----> o
        |
        |
        v
        D

[f]  [f]  [b]  [f]  [b]  [b]  [f]
AB > BD > DB > BC > CB > BA > AB

cases [2,5] can happens simultaneously

online identity ∋ [ social ∋ [mastodon♥, twitter®, facebook®, diaspora, linkedin®] ∥ repos ∋ [github®, gitlab♥, bitbucket®, sourceforge] ∥ media ∋ [itch.io®, vimeo®, peertube♥, twitch.tv®, tumblr®] ∥ communities ∋ [godotengine♥, openprocessing, stackoverflow, threejs]]