fieldpattern:: made the prime lists equal -- 6 primes

This commit is contained in:
Zeno Rogue 2019-11-17 13:46:42 +01:00
parent aa44ff82e3
commit 82083ba83d
2 changed files with 2 additions and 6 deletions

View File

@ -883,12 +883,8 @@ EX void nextPrime(fgeomextra& ex) {
} }
EX void nextPrimes(fgeomextra& ex) { EX void nextPrimes(fgeomextra& ex) {
while(true) { while(isize(ex.primes) < 6)
int nodual = 0;
for(int a: ex.dualval) if(!a) nodual++;
if(nodual >= 4) break;
nextPrime(ex); nextPrime(ex);
}
} }
EX void enableFieldChange() { EX void enableFieldChange() {

View File

@ -54,7 +54,7 @@ void showQuotientConfig() {
dialog::addBoolItem(XLAT("order %1%2 (pure cells: %3)", its(p.p), p.squared ? "²" : "", its(p.cells)) + stars[gxcur.dualval[i]], i == gxcur.current_prime_id, 'A'+i); dialog::addBoolItem(XLAT("order %1%2 (pure cells: %3)", its(p.p), p.squared ? "²" : "", its(p.cells)) + stars[gxcur.dualval[i]], i == gxcur.current_prime_id, 'A'+i);
} }
if(isize(gxcur.primes) < 6) { if(isize(gxcur.primes) <= 6) {
dialog::addBreak(100); dialog::addBreak(100);
dialog::addHelp( dialog::addHelp(
"This geometry is obtained by applying the same 'generators' which " "This geometry is obtained by applying the same 'generators' which "