Коммит aae102a1 создал по автору Ilya Portnov's avatar Ilya Portnov
Просмотр файлов
владелец c7d91452
......@@ -494,9 +494,9 @@ class OtherNurbsTests(SverchokTestCase):
self.assert_numpy_arrays_equal(removed.get_knotvector(), kv)
#self.assert_numpy_arrays_equal(removed.evaluate_array(ts), orig_pts)
print("CP", removed.get_control_points())
print("W", removed.get_weights())
#self.assert_numpy_arrays_equal(removed.get_control_points(), points)
#print("CP", removed.get_control_points())
#print("W", removed.get_weights())
self.assert_numpy_arrays_equal(removed.get_control_points(), points)
def test_split_1(self):
points = np.array([[0, 0, 0], [1, 0, 0]])
......
......@@ -699,7 +699,9 @@ class SvGeomdlCurve(SvNurbsCurve):
def remove_knot(self, u, count=1):
curve = self.copy()
curve = operations.remove_knot(curve.curve, [u], [count])
return SvGeomdlCurve(curve)
result = SvGeomdlCurve(curve)
result.u_bounds = self.u_bounds
return result
class SvNativeNurbsCurve(SvNurbsCurve):
def __init__(self, degree, knotvector, control_points, weights=None, normalize_knots=False):
......@@ -1001,7 +1003,7 @@ class SvNativeNurbsCurve(SvNurbsCurve):
else:
j -= 1
for k in range(i+1, len(ctrlpts)):
ctrlpts_new[j] = ctrlpts[k]
ctrlpts_new[j] = ctrlpts_new[k]
j += 1
# Slice to get the new control points
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать