arbitrary tilings

This commit is contained in:
Zeno Rogue
2019-12-14 11:57:23 +01:00
parent 0a9ec78c18
commit d529449999
9 changed files with 350 additions and 1 deletions
+4
View File
@@ -424,6 +424,10 @@ EX hyperpoint get_corner_position(cell *c, int cid, ld cf IS(3)) {
}
}
#endif
if(arb::in()) {
auto& sh = arb::current.shapes[arb::id_of(c->master)];
return normalize(C0 + (sh.vertices[cid % c->type] - C0) * 3 / cf);
}
if(PURE) {
return ddspin(c,cid,M_PI/S7) * xpush0(cgi.hcrossf * 3 / cf);
}