diff --git a/surf/geometry.py b/surf/geometry.py index 2e39f23..19356ad 100644 --- a/surf/geometry.py +++ b/surf/geometry.py @@ -174,7 +174,8 @@ class PolygonMesh(object): """ if self._faces_for_edge is None: # TODO: eventually support generating this ourselves ... - raise AttributeError("Not yet implemented if you don't explicitly pass this in") + raise AttributeError("Not yet implemented if you don't explicitly" + " pass this in") return self._faces_for_edge @property @@ -182,7 +183,8 @@ class PolygonMesh(object): """returns a list of edge indices for a given face index.""" if self._edges_for_face is None: # TODO: eventually support generating this ourselves ... - raise AttributeError("Not yet implemented if you don't explicitly pass this in") + raise AttributeError("Not yet implemented if you don't explicitly" + " pass this in") return self._edges_for_face @property @@ -190,7 +192,8 @@ class PolygonMesh(object): """returns a list of edge indices for a given vertex index.""" if self._edges_for_vert is None: # TODO: eventually support generating this ourselves ... - raise AttributeError("Not yet implemented if you don't explicitly pass this in") + raise AttributeError("Not yet implemented if you don't explicitly" + " pass this in") return self._edges_for_vert @property @@ -198,7 +201,8 @@ class PolygonMesh(object): """returns a list of face indices for a given vert index.""" if self._faces_for_vert is None: # TODO: eventually support generating this ourselves ... - raise AttributeError("Not yet implemented if you don't explicitly pass this in") + raise AttributeError("Not yet implemented if you don't explicitly" + " pass this in") return self._faces_for_vert def __unicode__(self): diff --git a/surf/subd/cc.py b/surf/subd/cc.py index ca6bfb3..d1e765d 100644 --- a/surf/subd/cc.py +++ b/surf/subd/cc.py @@ -232,7 +232,8 @@ def refine(poly): centroid_to_edge.vertex_ids = [edge_v_id, start_centroid.id] # set the new edge's winged_edge references - # centroid_to_edge.edge_ids = poly.edges ==> get edge by id not yet implemented... edge_v_id.edges + # centroid_to_edge.edge_ids = poly.edges ==> get edge by id not yet + # implemented... edge_v_id.edges # set the edge vertex edge references edge_v_id.edges.append(centroid_to_edge.id) @@ -250,7 +251,8 @@ def refine(poly): # f = sum(list( # set(face_vertices)), Vertex()) / len(list(set(face_vertices))) # r = sum(list( - # set(edge_mid_points)), Vertex()) / len(list(set(edge_mid_points))) + # set(edge_mid_points)), Vertex()) + # / len(list(set(edge_mid_points))) # p = vertex # n = len(vertex.edges) # v = (f + 2.0 * r + (n - 3.0) * p) / n