arbi:: check errors
This commit is contained in:
parent
20c962ef9f
commit
13c1d85439
|
@ -396,6 +396,12 @@ struct hrmap_arbi : hrmap {
|
||||||
for(auto& p2: altmap[alt]) if(id_of(p2.first) == xt && hdist(tC0(p2.second), tC0(T)) < 1e-2) {
|
for(auto& p2: altmap[alt]) if(id_of(p2.first) == xt && hdist(tC0(p2.second), tC0(T)) < 1e-2) {
|
||||||
for(int oth=0; oth < p2.first->type; oth++)
|
for(int oth=0; oth < p2.first->type; oth++)
|
||||||
if(hdist(p2.second * xsh.vertices[oth], T * xsh.vertices[e]) < 1e-2) {
|
if(hdist(p2.second * xsh.vertices[oth], T * xsh.vertices[e]) < 1e-2) {
|
||||||
|
ld err = hdist(p2.second * xsh.vertices[oth], T * xsh.vertices[e]);
|
||||||
|
static ld max_err = 0;
|
||||||
|
if(err > max_err) {
|
||||||
|
println(hlog, "err = ", err);
|
||||||
|
max_err = err;
|
||||||
|
}
|
||||||
h->c.connect(d, p2.first, oth%p2.first->type, m);
|
h->c.connect(d, p2.first, oth%p2.first->type, m);
|
||||||
return p2.first;
|
return p2.first;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue