fix argmin to argmax

This commit is contained in:
jan 2018-03-10 15:01:10 -08:00
commit 270a6612cc

View file

@ -256,7 +256,7 @@ def reduce(poly, poly_order):
vcur = neighbors[vstart, pstart]
edge_visited[vstart, pstart] = 1
prv_edge = (neighbors[vcur] == vstart).argmin()
prv_edge = (neighbors[vcur] == vstart).argmax()
nxt_edge = (prv_edge + 1) % 3
edge_visited[vcur, nxt_edge] = 1
vnext = neighbors[vcur, nxt_edge]