better condition for duplicate face detection
This commit is contained in:
parent
25c0b46963
commit
2aeb3e9615
1 changed files with 2 additions and 1 deletions
3
pyr3d.py
3
pyr3d.py
|
|
@ -286,6 +286,7 @@ def reduce(poly, poly_order):
|
|||
mask = numpy.array([True])
|
||||
remove = numpy.zeros_like(edge_id, dtype=bool)
|
||||
|
||||
|
||||
while mask.any():
|
||||
for i, vn in zip(edge_id, vnext):
|
||||
faces[i].append(vn)
|
||||
|
|
@ -294,7 +295,7 @@ def reduce(poly, poly_order):
|
|||
nxt_edge = (prv_edge + 1) % 3
|
||||
vcur, vnext = vnext, neighbors[vnext, nxt_edge]
|
||||
|
||||
remove_mask = numpy.logical_and(vcur < vstart, vcur < vnext)
|
||||
remove_mask = vcur < vstart
|
||||
remove[edge_id[remove_mask]] = True
|
||||
|
||||
mask = numpy.logical_and(vnext != vstart, ~remove_mask)
|
||||
|
|
|
|||
Loading…
Reference in a new issue