Skip to content

Commit

Permalink
Minor fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
portnov committed Oct 20, 2024
1 parent aa71cc5 commit acb5a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/curve/nurbs_solver_applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit acb5a10

Please sign in to comment.