Updated files to support py3

This commit is contained in:
Stephen M. McQuay
2012-05-29 17:33:28 -06:00
parent 2355deec9f
commit d05b5164b2
6 changed files with 19 additions and 15 deletions
+3 -3
View File
@@ -59,7 +59,7 @@ def refine(mesh):
# For each original Vertex P, move the original Vertex to a new location
# Here we mimic the F, R, and P spelling in the wiki article
for old_vid in xrange(f_vert_offset):
for old_vid in range(f_vert_offset):
# take the average F of all n face Vertices for faces touching P ...
F_verts = []
for old_fid in mesh.faces_for_vert[old_vid]:
@@ -88,12 +88,12 @@ def refine(mesh):
# For each face point, add an edge connecting the new face point to each
# new edge point
for fvid, evids in evid_for_fvid.iteritems():
for fvid, evids in evid_for_fvid.items():
for evid in evids:
new_edges.append([fvid, evid])
# to define new faces need to know the following for each new face:
for fvid in xrange(f_vert_offset, e_vert_offset):
for fvid in range(f_vert_offset, e_vert_offset):
# new face_vid (1 vid)
# vid connected to fvid (iterate over, use 1 vid periteration)