chiark
/
gitweb
/
~ian
/
moebius3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c07eb4
)
helixish: try_s and try_t now always >= 0
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 30 Dec 2017 22:28:44 +0000
(22:28 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 30 Dec 2017 22:28:46 +0000
(22:28 +0000)
Since we add tau if necessary
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
helixish.py
patch
|
blob
|
history
diff --git
a/helixish.py
b/helixish.py
index bf8083fbd35dcc137f044027461e59bd0610003a..c3a1797254d485bb86c71ae16ea1603605365822 100644
(file)
--- a/
helixish.py
+++ b/
helixish.py
@@
-169,8
+169,6
@@
class HelixishCurve():
try_s = railway_ST(railway_CP, [0,0], railway_midpt, railway_r)
try_t = railway_ST(railway_CP, railway_midpt, q_plane[0:2], railway_r)
dbg('try_s, _t', try_s, try_t)
- if try_s < 0 or try_t < 0:
- continue
try_st = try_s + try_t
if best_st is None or try_st < best_st: