minor cleanup
This commit is contained in:
parent
9189109c08
commit
eea9bc3fd6
1 changed files with 3 additions and 4 deletions
|
|
@ -94,9 +94,8 @@ def split(poly, plane, same_only: bool = False):
|
||||||
# remove edges which don't also touch the left half-plane
|
# remove edges which don't also touch the left half-plane
|
||||||
rverts = right_inds3[far_vertex_left]
|
rverts = right_inds3[far_vertex_left]
|
||||||
lverts = next_vertex[far_vertex_left]
|
lverts = next_vertex[far_vertex_left]
|
||||||
pinds = (numpy.arange(3 * num_right) % 3)[far_vertex_left]
|
if not same_only:
|
||||||
# r2l_edges = numpy.column_stack((right_inds3, next_vertex, pnbr_inds))
|
pinds = (numpy.arange(3 * num_right) % 3)[far_vertex_left]
|
||||||
# r2l_edges = r2l_edges[far_vertex_left, :] # remove edges which don't also touch the left half-plane
|
|
||||||
|
|
||||||
num_new_vertices = rverts.size
|
num_new_vertices = rverts.size
|
||||||
|
|
||||||
|
|
@ -106,7 +105,7 @@ def split(poly, plane, same_only: bool = False):
|
||||||
prev_verts = rverts
|
prev_verts = rverts
|
||||||
cur_verts = lverts
|
cur_verts = lverts
|
||||||
edge_walk_inds = numpy.arange(num_new_vertices)
|
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
|
src_pns = None
|
||||||
while cur_verts.size > 0:
|
while cur_verts.size > 0:
|
||||||
# Get the list of our current neighbors, find which one points to the
|
# Get the list of our current neighbors, find which one points to the
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue