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:
|
if self._faces_for_edge is None:
|
||||||
# TODO: eventually support generating this ourselves ...
|
# 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
|
return self._faces_for_edge
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -182,7 +183,8 @@ class PolygonMesh(object):
|
|||||||
"""returns a list of edge indices for a given face index."""
|
"""returns a list of edge indices for a given face index."""
|
||||||
if self._edges_for_face is None:
|
if self._edges_for_face is None:
|
||||||
# TODO: eventually support generating this ourselves ...
|
# 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
|
return self._edges_for_face
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -190,7 +192,8 @@ class PolygonMesh(object):
|
|||||||
"""returns a list of edge indices for a given vertex index."""
|
"""returns a list of edge indices for a given vertex index."""
|
||||||
if self._edges_for_vert is None:
|
if self._edges_for_vert is None:
|
||||||
# TODO: eventually support generating this ourselves ...
|
# 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
|
return self._edges_for_vert
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -198,7 +201,8 @@ class PolygonMesh(object):
|
|||||||
"""returns a list of face indices for a given vert index."""
|
"""returns a list of face indices for a given vert index."""
|
||||||
if self._faces_for_vert is None:
|
if self._faces_for_vert is None:
|
||||||
# TODO: eventually support generating this ourselves ...
|
# 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
|
return self._faces_for_vert
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
|
@ -232,7 +232,8 @@ def refine(poly):
|
|||||||
centroid_to_edge.vertex_ids = [edge_v_id, start_centroid.id]
|
centroid_to_edge.vertex_ids = [edge_v_id, start_centroid.id]
|
||||||
|
|
||||||
# set the new edge's winged_edge references
|
# 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
|
# set the edge vertex edge references
|
||||||
edge_v_id.edges.append(centroid_to_edge.id)
|
edge_v_id.edges.append(centroid_to_edge.id)
|
||||||
@ -250,7 +251,8 @@ def refine(poly):
|
|||||||
# f = sum(list(
|
# f = sum(list(
|
||||||
# set(face_vertices)), Vertex()) / len(list(set(face_vertices)))
|
# set(face_vertices)), Vertex()) / len(list(set(face_vertices)))
|
||||||
# r = sum(list(
|
# 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
|
# p = vertex
|
||||||
# n = len(vertex.edges)
|
# n = len(vertex.edges)
|
||||||
# v = (f + 2.0 * r + (n - 3.0) * p) / n
|
# v = (f + 2.0 * r + (n - 3.0) * p) / n
|
||||||
|
Loading…
Reference in New Issue
Block a user