3d:: 2D/3D is now selectable at runtime

This commit is contained in:
? authored and Zeno Rogue committed 2019-09-12 22:38:40 +02:00
1 parent 1f8510bc71
commit d08e58f404
17 files changed
+206 -230

No files matched your search

+8 -10
View File
@@ -457,7 +457,10 @@ hyperpoint get_corner_position(cell *c, int cid, ld cf) {
#endif
#if CAP_BT
if(binarytiling) {
#if DIM == 2
if(DIM == 3) {
println(hlog, "get_corner_position called");
return C0;
}
ld yx = log(2) / 2;
ld yy = yx;
ld xx = 1 / sqrt(2)/2;
@@ -470,10 +473,6 @@ hyperpoint get_corner_position(cell *c, int cid, ld cf) {
vertices[5] = get_horopoint(-yy, -xx);
vertices[6] = get_horopoint(-yy, 0);
return mid_at_actual(vertices[cid], 3/cf);
#else
println(hlog, "get_corner_position called");
return C0;
#endif
}
#endif
#if CAP_ARCM
@@ -547,7 +546,10 @@ hyperpoint nearcorner(cell *c, int i) {
#endif
#if CAP_BT
if(binarytiling) {
#if DIM == 2
if(DIM == 3) {
println(hlog, "nearcorner called");
return Hypc;
}
ld yx = log(2) / 2;
ld yy = yx;
// ld xx = 1 / sqrt(2)/2;
@@ -563,10 +565,6 @@ hyperpoint nearcorner(cell *c, int i) {
else
neis[5] = get_horopoint(-yy*2, 0);
return neis[i];
#else
println(hlog, "nearcorner called");
return Hypc;
#endif
}
#endif
double d = cellgfxdist(c, i);