From acb5a10c5f81b7ae7277775cb3766a000c11efea Mon Sep 17 00:00:00 2001 From: "Ilya V. Portnov" Date: Sun, 20 Oct 2024 14:12:25 +0500 Subject: [PATCH] Minor fix. --- utils/curve/nurbs_solver_applications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/curve/nurbs_solver_applications.py b/utils/curve/nurbs_solver_applications.py index 2d7525bc3c..edf68ca390 100644 --- a/utils/curve/nurbs_solver_applications.py +++ b/utils/curve/nurbs_solver_applications.py @@ -111,7 +111,7 @@ def approximate_nurbs_curve(degree, n_cpts, points, weights=None, metric='DISTAN """ points = np.asarray(points) tknots = Spline.create_knots(points, metric=metric) - knotvector = sv_knotvector.from_tknots(degree, tknots, n_cpts) + knotvector = sv_knotvector.from_tknots(degree, tknots, n_cpts=n_cpts) goal = SvNurbsCurvePoints(tknots, points, weights = weights, relative=False) solver = SvNurbsCurveSolver(degree=degree) solver.set_curve_params(n_cpts, knotvector = knotvector)