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]