fixed duals for Euclidean tessellations

This commit is contained in:
Zeno Rogue 2020-09-22 15:50:57 +02:00
parent f41ce7c42a
commit 1ab72ba964
2 changed files with 12 additions and 0 deletions

View File

@ -938,6 +938,10 @@ EX cdata *arcmCdata(cell *c) {
EX int getCdata(cell *c, int j) {
if(fake::in()) return FPIU(getCdata(c, j));
if(INVERSE) {
cell *c1 = gp::get_mapped(c);
return UIU(getCdata(c1, j));
}
if(hybri) { c = hybrid::get_where(c).first; return PIU(getBits(c)); }
else if(euc::in()) return getEuclidCdata(euc2_coordinates(c))->val[j];
else if(arcm::in() && euclid)
@ -957,6 +961,10 @@ EX int getCdata(cell *c, int j) {
EX int getBits(cell *c) {
if(fake::in()) return FPIU(getBits(c));
if(INVERSE) {
cell *c1 = gp::get_mapped(c);
return UIU(getBits(c1));
}
if(hybri) { c = hybrid::get_where(c).first; return PIU(getBits(c)); }
else if(euc::in()) return getEuclidCdata(euc2_coordinates(c))->bits;
else if(arcm::in() && euclid)

View File

@ -1136,6 +1136,10 @@ EX int dcross(gp::loc e1, gp::loc e2) {
}
EX gp::loc full_coords2(cell *c) {
if(INVERSE) {
cell *c1 = gp::get_mapped(c);
return UIU(full_coords2(c1));
}
auto ans = eucmap()->ispacemap[c->master];
if(S7 == 4 && BITRUNCATED) {
if(c == c->master->c7) return to_loc(ans) * gp::loc(1,1);