@@ -124,6 +124,9 @@ def test_hobby_points(self):
124124 Point3 (1.00 , 1.00 , 0.00 ),
125125 Point3 (1.33 , 1.12 , 0.00 ),
126126 Point3 (1.71 , 1.19 , 0.00 ),
127+ Point3 (2.00 , 1.00 , 0.00 ),
128+ Point3 (2.63 , 0.60 , 0.00 ),
129+ Point3 (2.35 , - 0.28 , 0.00 ),
127130 Point3 (2.00 , - 1.00 , 0.00 ),
128131 ]
129132
@@ -133,11 +136,19 @@ def test_hobby_points(self):
133136 def test_hobby_points_raw (self ):
134137 expected = [
135138 Point3 (0.00 , 0.00 , 0.00 ),
136- Point3 (- 0.10 , 0.54 , 0.00 ),
137- Point3 (0.43 , 0.91 , 0.00 ),
139+ Point3 (0.07 , 0.50 , 0.00 ),
140+ Point3 (0.52 , 0.82 , 0.00 ),
141+ Point3 (1.00 , 1.00 , 0.00 ),
142+ Point3 (1.33 , 1.12 , 0.00 ),
143+ Point3 (1.71 , 1.19 , 0.00 ),
138144 Point3 (2.00 , 1.00 , 0.00 ),
145+ Point3 (2.63 , 0.60 , 0.00 ),
146+ Point3 (2.35 , - 0.28 , 0.00 ),
147+ Point3 (2.00 , - 1.00 , 0.00 ),
139148 ]
140- actual = hobby_points (self .points_raw , self .hobby_omega , close_loop = False )
149+ actual = hobby_points (
150+ self .bezier_controls_raw , self .hobby_omega , close_loop = False
151+ )
141152 self .assertPointsListsEqual (expected , actual )
142153
143154 def test_hobby_points_3d (self ):
@@ -154,6 +165,9 @@ def test_hobby_points_3d(self):
154165 Point3 (- 0.50 , - 0.50 , 1.00 ),
155166 Point3 (- 0.12 , - 0.22 , 1.10 ),
156167 Point3 (0.11 , 0.24 , 1.13 ),
168+ Point3 (0.50 , 0.50 , 1.00 ),
169+ Point3 (1.01 , 0.84 , 0.83 ),
170+ Point3 (1.55 , 0.88 , 0.44 ),
157171 Point3 (2.00 , 1.00 , 0.00 ),
158172 ]
159173
0 commit comments