File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2725,13 +2725,15 @@ def permutation_matrices(n):
2725
2725
qinds = np .arange (qc )
2726
2726
rinds = np .arange (rc )
2727
2727
2728
+ square_rot = square .dot (permute .T )
2729
+
2728
2730
for p in pinds :
2729
2731
for q in qinds :
2730
2732
# draw lower faces
2731
2733
p0 = permute .dot ([p , q , 0 ])
2732
2734
i0 = tuple (p0 )
2733
2735
if filled [i0 ]:
2734
- boundary_found (p0 + square . dot ( permute . T ) , color [i0 ])
2736
+ boundary_found (p0 + square_rot , color [i0 ])
2735
2737
2736
2738
# draw middle faces
2737
2739
for r1 , r2 in zip (rinds , rinds [1 :]):
@@ -2742,16 +2744,16 @@ def permutation_matrices(n):
2742
2744
i2 = tuple (p2 )
2743
2745
2744
2746
if filled [i1 ] and not filled [i2 ]:
2745
- boundary_found (p2 + square . dot ( permute . T ) , color [i1 ])
2747
+ boundary_found (p2 + square_rot , color [i1 ])
2746
2748
elif not filled [i1 ] and filled [i2 ]:
2747
- boundary_found (p2 + square . dot ( permute . T ) , color [i2 ])
2749
+ boundary_found (p2 + square_rot , color [i2 ])
2748
2750
2749
2751
# draw upper faces
2750
2752
pk = permute .dot ([p , q , rc - 1 ])
2751
2753
pk2 = permute .dot ([p , q , rc ])
2752
2754
ik = tuple (pk )
2753
2755
if filled [ik ]:
2754
- boundary_found (pk2 + square . dot ( permute . T ) , color [ik ])
2756
+ boundary_found (pk2 + square_rot , color [ik ])
2755
2757
2756
2758
return polygons
2757
2759
You can’t perform that action at this time.
0 commit comments