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:
6d396c9
)
Helixish: switch to it
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 26 Nov 2017 15:00:18 +0000
(15:00 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 26 Nov 2017 15:00:22 +0000
(15:00 +0000)
Does not work at all yet
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
moebius.py
patch
|
blob
|
history
diff --git
a/moebius.py
b/moebius.py
index 4294d864140ca032b5fe44077be33d30c618da69..081f428332e74f52e9cb614937798b6989a3fdd6 100644
(file)
--- a/
moebius.py
+++ b/
moebius.py
@@
-5,6
+5,7
@@
import numpy as np
from numpy import cos, sin
from bezier import BezierSegment
+from helixish import HelixishCurve
from moenp import *
import sys
@@
-93,7
+94,7
@@
class MoebiusHalf:
# file=sys.stderr)
cp[1] = cp[0] + cp1scale * m.edge .dirn (theta)
cp[2] = cp[3] + cp2scale * m.midline.dirn (theta*2)
- return
DoubleCubicBezier
(cp)
+ return
HelixishCurve
(cp)
def point(m, iu, t):
'''
0 <= iu <= nu meaning 0 <= u <= 1