minor cleanup

This commit is contained in:
jan 2018-03-28 23:10:55 -07:00
commit eea9bc3fd6

View file

@ -94,9 +94,8 @@ def split(poly, plane, same_only: bool = False):
# remove edges which don't also touch the left half-plane
rverts = right_inds3[far_vertex_left]
lverts = next_vertex[far_vertex_left]
if not same_only:
pinds = (numpy.arange(3 * num_right) % 3)[far_vertex_left]
# r2l_edges = numpy.column_stack((right_inds3, next_vertex, pnbr_inds))
# r2l_edges = r2l_edges[far_vertex_left, :] # remove edges which don't also touch the left half-plane
num_new_vertices = rverts.size
@ -106,7 +105,7 @@ def split(poly, plane, same_only: bool = False):
prev_verts = rverts
cur_verts = lverts
edge_walk_inds = numpy.arange(num_new_vertices)
edge_walk_results = numpy.empty((rverts.size, 2), dtype=int)
edge_walk_results = numpy.empty((num_new_vertices, 2), dtype=int)
src_pns = None
while cur_verts.size > 0:
# Get the list of our current neighbors, find which one points to the