1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-23 01:47:39 +00:00

Goldberg-Coxeter construction for order-4 tilings (everything seems to work except distance calculations)

This commit is contained in:
Zeno Rogue
2018-07-10 04:13:35 +02:00
parent a7fa9d7525
commit 5cd8f695a3
5 changed files with 178 additions and 71 deletions

View File

@@ -332,7 +332,7 @@ namespace gp {
id = nextid++;
bool master = !(li.relative.first||li.relative.second);
int cor = master ? S7 : 6;
int cor = master ? S7 : SG6;
if(master) li.last_dir = -1;
if(debug_geometry)
printf("last=%d at=%d,%d tot=%d siid=%d sidir=%d cor=%d id=%d\n", li.last_dir, li.relative.first, li.relative.second, li.total_dir, siid, sidir, cor, id);
@@ -437,7 +437,7 @@ namespace gp {
for(int j=0; j<cor; j++)
cornerlist.push_back(get_corner_position(li, j, sca));
}
bshape(fsh.b[id], fsh.prio);
for(int i=0; i<=cor; i++) hpcpush(cornerlist[i%cor]);