Correction of indices

This commit is contained in:
Dishant Varshney 2023-04-02 03:16:09 +05:30 committed by GitHub
parent d8428585f8
commit 3b2904b4c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,7 +213,7 @@ def smooth_quadratic_path(anchors: Vect3Array) -> Vect3Array:
if len(anchors) < 2:
return anchors
elif len(anchors) == 2:
return np.array([anchors[0], anchors.mean(1), anchors[2]])
return np.array([anchors[0], anchors.mean(0), anchors[1]])
is_flat = (anchors[:, 2] == 0).all()
if not is_flat: