[pack2d] don't place rejects
This commit is contained in:
parent
feb5d87cf4
commit
75dc391540
1 changed files with 3 additions and 1 deletions
|
|
@ -236,7 +236,9 @@ def pack_patterns(
|
|||
locations, reject_inds = packer(sizes, containers, presort=presort, allow_rejects=allow_rejects)
|
||||
|
||||
pat = Pattern()
|
||||
for pp, oo, loc in zip(patterns, offsets, locations, strict=True):
|
||||
for ii, (pp, oo, loc) in enumerate(zip(patterns, offsets, locations, strict=True)):
|
||||
if ii in reject_inds:
|
||||
continue
|
||||
pat.ref(pp, offset=oo + loc)
|
||||
|
||||
rejects = [patterns[ii] for ii in reject_inds]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue