rots:: fixed the confusion when switching tilings

This commit is contained in:
Zeno Rogue 2019-08-27 22:21:17 +02:00
parent c6ca145d43
commit 443ba65730
2 changed files with 3 additions and 3 deletions

View File

@ -909,7 +909,7 @@ EX void check_cgi() {
if(GOLDBERG) V("GP", its(gp::param.first) + "," + its(gp::param.second));
if(IRREGULAR) V("IRR", its(irr::irrid));
if(geometry == gArchimedean) V("ARCM", arcm::current.symbol);
if(archimedean) V("ARCM", arcm::current.symbol);
if(cryst) V("CRYSTAL", its(ginf[gCrystal].sides) + its(ginf[gCrystal].vertex));

View File

@ -1130,10 +1130,10 @@ EX namespace rots {
return cspin(3, 2, -z) * cspin(0, 1, -z);
}
std::unordered_map<int, transmatrix> saved_matrices;
struct hrmap_rotation_space : hybrid::hrmap_hybrid {
std::unordered_map<int, transmatrix> saved_matrices;
transmatrix relative_matrix(cell *c1, int i) {
if(i == c1->type-2) return uzpush(-cgi.plevel) * spin(-2*cgi.plevel);
if(i == c1->type-1) return uzpush(+cgi.plevel) * spin(+2*cgi.plevel);