From 3cc9b7dd7cff316f0774792289c67f958f7ac876 Mon Sep 17 00:00:00 2001 From: Pavel Govyadinov Date: Fri, 13 Sep 2019 14:41:47 -0500 Subject: [PATCH] finished all the ground work for the sum of all torques algorithm --- voronoi_test.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/voronoi_test.py b/voronoi_test.py index 98857e1..c32242f 100644 --- a/voronoi_test.py +++ b/voronoi_test.py @@ -51,6 +51,8 @@ class Polygon_mass: p[0] = self.CoM[0] + math.cos(phi) * (self.CoM[0] + p[0]) + math.sin(phi) * (p[1] - self.CoM[1]) p[1] = self.CoM[1] + math.sin(phi) * (self.CoM[0] + p[0]) - math.cos(phi) * (p[1] - self.CoM[1]) self.G.vertex_properties["pos"][v] = p + + def plot_graph(self, D, x, y): plt.figure() -- libgit2 0.21.4