From 23f343a6087dbb00ec01417882b22879ffdd1b9b Mon Sep 17 00:00:00 2001 From: "Stephen M. McQuay" Date: Wed, 30 May 2012 22:57:26 -0600 Subject: [PATCH] added Vertex method to allow for += --- surf/geometry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/surf/geometry.py b/surf/geometry.py index 090e2b7..c780317 100644 --- a/surf/geometry.py +++ b/surf/geometry.py @@ -95,6 +95,8 @@ class Vertex(list): # for now just assume type(other) = Vertex... bad, I know return Vertex(self.x + other.x, self.y + other.y, self.z + other.z) + __iadd__ = __add__ + def __radd__(self, other): return other + self