X-Git-Url: https://git.ao2.it/flexagon-toolkit.git/blobdiff_plain/6d9cd06817dcbc3c609dd72029f8840fbfdffab9..3143f02f27e92c9d3475485e706bce8ffd73b6b3:/src/flexagon/hexaflexagon_diagram.py diff --git a/src/flexagon/hexaflexagon_diagram.py b/src/flexagon/hexaflexagon_diagram.py index 09e8fc9..cdd636b 100755 --- a/src/flexagon/hexaflexagon_diagram.py +++ b/src/flexagon/hexaflexagon_diagram.py @@ -56,7 +56,7 @@ class HexaflexagonDiagram(object): cx = self.x_border + self.hexagon_radius + (2 * self.hexagon_radius + self.x_border) * hexagon.index self.hexagons_centers[hexagon.index] = (cx, cy) - triangles_centers = self.backend.get_regular_polygon(cx, cy, 6, self.triangle_radius) + triangles_centers = self.backend.get_regular_polygon(cx, cy, 6, self.triangle_radius, pi / 6) for triangle in hexagon.triangles: self.triangles_centers[hexagon.index][triangle.index] = triangles_centers[triangle.index]