pep8/pyflakes violations
This commit is contained in:
parent
c324fb281f
commit
f69f9e0224
@ -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):
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user