added meaningful subd vert test

This commit is contained in:
Stephen M. McQuay
2012-05-15 22:57:44 -06:00
parent e0460a0b8d
commit 71f99ba58d
2 changed files with 9 additions and 8 deletions
+2 -5
View File
@@ -52,18 +52,15 @@ def refine(mesh):
new_vertices.append(centroid(tmp_verts))
# For each face point, add an edge for every edge of the old face,
# connecting the face point to each edge point for the face.
# connecting the new face point to each new edge point
for trunc_vid in xrange(len(new_vertices[f_vert_offset:e_vert_offset])):
overall_vid = f_vert_offset + trunc_vid
for edge_vid in edge_vids_for_face[trunc_vid]:
new_edges.append([edge_vid, overall_vid])
# v_vert_offset = len(new_vertices)
# For each original point P
# For each original point P, move the original point to a new location
for new_vid in xrange(f_vert_offset):
# take the average F of all n face points for faces touching P ...
new_face_ids = face_ids_for_v[new_vid]
F_verts = []
for fid in new_face_ids: