From dd6148ef5271b81ff1c4ff4de8c24a34f8a8e286 Mon Sep 17 00:00:00 2001 From: "Stephen M. McQuay" Date: Wed, 16 May 2012 00:00:58 -0600 Subject: [PATCH] fixed some pep8 violations --- surf/subd/cc.py | 7 +++++-- surf/test/subd/cc.py | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/surf/subd/cc.py b/surf/subd/cc.py index 9dfe8ba..764caf8 100644 --- a/surf/subd/cc.py +++ b/surf/subd/cc.py @@ -43,7 +43,8 @@ def refine(mesh): # Set each edge point to be the average of the two neighbouring, (very # recently calculated) face points ... - tmp_verts.extend([new_vertices[f + f_vert_offset] for f in old_face_ids_for_old_edge]) + tmp_verts.extend([new_vertices[f + f_vert_offset] + for f in old_face_ids_for_old_edge]) # ... and its two original endpoints. tmp_verts.extend([mesh.vertices[vid] for vid in old_edge]) @@ -78,7 +79,9 @@ def refine(mesh): # where each edge midpoint is the average of its two endpoint vertices. # **Move** each original point to the point (or add it to new_verts) - new_vertex_point = (F + 2 * R + (len(edges) - 3) * new_vertices[old_vid]) / len(edges) + new_vertex_point = (F + 2 * R + + (len(edges) - 3) * new_vertices[old_vid] + ) / len(edges) new_vertices[old_vid] = new_vertex_point # Connect each new Vertex point to the new edge points of all original diff --git a/surf/test/subd/cc.py b/surf/test/subd/cc.py index 902d5f6..94fb0c8 100644 --- a/surf/test/subd/cc.py +++ b/surf/test/subd/cc.py @@ -14,7 +14,8 @@ class TestCC(unittest.TestCase): 'blender', 'samples') self.cube_file_name = os.path.join(self.samples_dir, 'cube.json') self.cube = json.load(open(self.cube_file_name, 'r')) - self.cube_file_name = os.path.join(self.samples_dir, 'cube-blender-cc-1.json') + self.cube_file_name = os.path.join(self.samples_dir, + 'cube-blender-cc-1.json') self.cube1 = json.load(open(self.cube_file_name, 'r')) def test_refined_vertex_location(self):