fix argmin to argmax
This commit is contained in:
parent
3b65d0b6ff
commit
270a6612cc
1 changed files with 1 additions and 1 deletions
2
pyr3d.py
2
pyr3d.py
|
|
@ -256,7 +256,7 @@ def reduce(poly, poly_order):
|
||||||
vcur = neighbors[vstart, pstart]
|
vcur = neighbors[vstart, pstart]
|
||||||
edge_visited[vstart, pstart] = 1
|
edge_visited[vstart, pstart] = 1
|
||||||
|
|
||||||
prv_edge = (neighbors[vcur] == vstart).argmin()
|
prv_edge = (neighbors[vcur] == vstart).argmax()
|
||||||
nxt_edge = (prv_edge + 1) % 3
|
nxt_edge = (prv_edge + 1) % 3
|
||||||
edge_visited[vcur, nxt_edge] = 1
|
edge_visited[vcur, nxt_edge] = 1
|
||||||
vnext = neighbors[vcur, nxt_edge]
|
vnext = neighbors[vcur, nxt_edge]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue