From d683794e999e323273921c3b676201e03d72069b Mon Sep 17 00:00:00 2001 From: rendetto <66558924+rendetto@users.noreply.github.com> Date: Mon, 19 Dec 2022 17:35:17 +0200 Subject: [PATCH] Curvature comb is missing end spike I noticed that Curvature Comb is missing the end spike. So this change is for fixing this. --- utils/curve/bakery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/curve/bakery.py b/utils/curve/bakery.py index 55866ecffd..5e05d24be6 100644 --- a/utils/curve/bakery.py +++ b/utils/curve/bakery.py @@ -71,7 +71,7 @@ def __init__(self, node, curve, resolution): comb_normals = node.comb_scale * curvatures * normals comb_points = self.points - comb_normals self.comb_points = np.concatenate((self.points, comb_points)).tolist() - comb_normal_edges = [(i, i+n) for i in range(n-1)] + comb_normal_edges = [(i, i+n) for i in range(n)] comb_tangent_edges = [(i, i+1) for i in range(n, 2*n-1)] self.comb_edges = comb_normal_edges + comb_tangent_edges else: