1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-17 19:48:06 +00:00

3D variations: subcubes

This commit is contained in:
Zeno Rogue
2021-07-07 01:48:20 +02:00
parent 7fff0405a7
commit 4b3f72cc56
9 changed files with 310 additions and 70 deletions

View File

@@ -1031,6 +1031,23 @@ void geometry_information::create_wall3d() {
walloffsets.clear();
}
if(reg3::in() && !PURE) {
int tot = 0;
for(auto& ss: cgi.subshapes) tot += isize(ss.faces);
reserve_wall3d(tot);
int id = 0;
for(auto& ss: cgi.subshapes) {
walloffsets.emplace_back(id, nullptr);
for(auto& face: ss.faces_local)
make_wall(id++, face);
}
hassert(id == tot);
println(hlog, walloffsets);
println(hlog, wallstart);
compute_cornerbonus();
return;
}
if(euc::in() || reg3::in() || asonov::in()) {
for(int w=0; w<isize(cgi.cellshape); w++)
make_wall(w, cgi.cellshape[w]);