fixed some pep8 violations
This commit is contained in:
+5
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user