minor style changes

This commit is contained in:
Zeno Rogue 2022-12-15 21:18:39 +01:00
parent 74b59d3331
commit 90977aacaf
2 changed files with 5 additions and 2 deletions

View File

@ -665,7 +665,7 @@ void geometry_information::generate_floorshapes_for(int id, cell *c, int siid, i
}
#if MAXMDIM >= 4
if(WDIM == 2 && GDIM == 3) {
if(embedded_plane) {
finishshape();
for(auto pfsh: all_plain_floorshapes) {
auto& fsh = *pfsh;

View File

@ -111,7 +111,10 @@ void geometry_information::chasmifyPoly(double fol, double fol2, int k) {
int zf = int(x);
if(zf == isize(points)-1) zf--;
x -= zf;
hpcpush(orthogonal_move(normalize_flat(points[zf] + (points[zf+1] - points[zf]) * x), fol + (fol2-fol) * y));
auto hp = points[zf] + (points[zf+1] - points[zf]) * x;
auto hf = normalize_flat(hp);
auto ho = orthogonal_move(hf, fol + (fol2-fol) * y);
hpcpush(ho);
};
texture_order([&] (ld x, ld y) { at((1-x+y)/2, (1-x-y)/2); });
texture_order([&] (ld x, ld y) { at((1-x-y)/2, (1+x-y)/2); });