fixed binary tiling embedded in product

This commit is contained in:
Zeno Rogue 2022-12-17 19:34:03 +01:00
parent be747b7a44
commit 72c1cf300e
1 changed files with 1 additions and 1 deletions

View File

@ -863,7 +863,7 @@ EX transmatrix matrix3(ld a, ld b, ld c, ld d, ld e, ld f, ld g, ld h, ld i) {
#if MAXMDIM==3
return transmatrix {{{a,b,c},{d,e,f},{g,h,i}}};
#else
if(GDIM == 2)
if(GDIM == 2 || MDIM == 3)
return transmatrix {{{a,b,c,0},{d,e,f,0},{g,h,i,0},{0,0,0,1}}};
else
return transmatrix {{{a,b,0,c},{d,e,0,f},{0,0,1,0},{g,h,0,i}}};