more elegant cellwalkers

This commit is contained in:
Zeno Rogue committed 2018-03-24 12:59:01 +01:00
1 parent 2c09c5ee56
commit ac37b6df99
20 files changed
+371 -467

No files matched your search

+1 -3
View File
@@ -602,9 +602,7 @@ void buildRug() {
rugpoint *w2 = vptr.at(c3);
if(a4) {
cellwalker cw(c, j);
cwstep(cw); cwspin(cw, -1); cwstep(cw);
cell *c4 = cw.c;
cell *c4 = (cellwalker(c,j) + wstep - 1 + wstep).c;
cell *cm = c; comp(cm, c); comp(cm, c2); comp(cm, c3); comp(cm, c4);
if(cm == c || cm == c4)
addTriangle(v, w, w2);