From 940cec1811823b1e0a537675171f328e9c1b70ef Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sun, 12 Feb 2023 13:27:35 +0100 Subject: [PATCH] polygonWall: Fix numbers of callbacks They were off by a factor of two as they should be numberd by sides while we also counted corners --- boxes/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boxes/__init__.py b/boxes/__init__.py index 5981545..81692e1 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -2700,7 +2700,7 @@ class Boxes: length_correction = 0. for i in range(0, len(borders), 2): - self.cc(callback, i) + self.cc(callback, i / 2) self.edge(length_correction) l = borders[i] - length_correction next_angle = borders[i+1]