n=15, direction parallel to a side, start point at fraction 0.37 of the start side (not a midpoint)
 j | bounces, length of the simple preclosed part (literal definition) | bounces, length until the trajectory is closed | ratio | sides visited
 1 | 2, 3.827091 | 30, 57.406364 | 15.000000 | [1, 14, 12]
 2 | 2, 6.992443 | 30, 104.886646 | 15.000000 | [2, 13, 9]
 3 | 2, 8.948738 | 10, 44.743691 | 5.000000 | [3, 12, 6]
 4 | 2, 9.357715 | 30, 140.365730 | 15.000000 | [4, 11, 3]
 5 | 2, 8.148658 | 6, 24.445975 | 3.000000 | [5, 10, 0]
 6 | 2, 5.530624 | 10, 27.653122 | 5.000000 | [6, 9, 12]
 7 | 2, 1.956295 | 30, 29.344428 | 15.000000 | [7, 8, 9]
factors in order of increasing preclosed length: [15, 15, 5, 15, 3, 5, 15]
middle lines (start at the midpoint, fraction 0.5): preclosed bounces / closed bounces / ratio
   j=1: 1 / 15 / 15.0000
   j=2: 1 / 15 / 15.0000
   j=3: 1 / 5 / 5.0000
   j=4: 1 / 15 / 15.0000
   j=5: 1 / 3 / 3.0000
   j=6: 1 / 5 / 5.0000
   j=7: 1 / 15 / 15.0000
