Fixed the bugs with computing fieldpattern not in hyperbolic geometry (memory error + canvas crashes)

This commit is contained in:
Zeno Rogue committed 2018-05-09 21:32:31 +02:00
1 parent 03db677d66
commit 39db828a38
5 files changed
+15 -9

No files matched your search

+8 -2
View File
@@ -697,7 +697,7 @@ void info() {
printf("cases found = %d (%d hard)\n", cases, hard);
}
fpattern current_quotient_field(0);
fpattern current_quotient_field(0), fp_invalid(0);
bool quotient_field_changed;
fpattern& getcurrfp() {
@@ -719,6 +719,7 @@ fpattern& getcurrfp() {
static fpattern fp(13);
return fp;
}
if(sphere || euclid) return fp_invalid;
return fp43;
}
@@ -729,7 +730,12 @@ vector<fgeomextra> fgeomextras = {
fgeomextra(gOctagon, 1),
fgeomextra(g45, 0),
fgeomextra(g46, 3),
fgeomextra(g47, 0)
fgeomextra(g47, 0),
/* fgeomextra(gSphere, 0),
fgeomextra(gSmallSphere, 0), -> does not find the prime
fgeomextra(gEuclid, 0),
fgeomextra(gEuclidSquare, 0),
fgeomextra(gTinySphere, 0) */
};
int current_extra = 0;