Skip to content

Commit

Permalink
Fix span finding for out-of-domain evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
Onur R. Bingol committed Jan 14, 2021
1 parent 1d6deba commit f19e326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geomdl/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def find_span_linear(degree, knot_vector, num_ctrlpts, knot, **kwargs):
:return: knot span
:rtype: int
"""
span = 0 # Knot span index starts from zero
span = degree + 1 # Knot span index starts from zero
while span < num_ctrlpts and knot_vector[span] <= knot:
span += 1

Expand Down

0 comments on commit f19e326

Please sign in to comment.