- * Find the set of equivalence classes of squares permitted
- * by the selected symmetry. We do this by enumerating all
- * the grid squares which have no symmetric companion
- * sorting lower than themselves.
- */
- nsymmclasses = 0;
- symmclasses = snewn(cr * cr, int);
- {
- int x, y;
-
- for (y = 0; y < cr; y++)
- for (x = 0; x < cr; x++) {
- int i = y*cr+x;
- int j;
-
- ncoords = symmetries(params, x, y, coords, params->symm);
- for (j = 0; j < ncoords; j++)
- if (coords[2*j+1]*cr+coords[2*j] < i)
- break;
- if (j == ncoords)
- symmclasses[nsymmclasses++] = i;
- }
- }
-
- /*