fixed some pep8 violations

This commit is contained in:
Stephen M. McQuay
2012-05-16 00:00:58 -06:00
parent 1a317781cf
commit dd6148ef52
2 changed files with 7 additions and 3 deletions
+5 -2
View File
@@ -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