Hi all,
I am trying to create some polyominoes, starting from a grid of cells. I am having some issues because I would like to avoid creating duplicates, both in terms of rotation and flip. So, I am trying a way in which I can check if two surfaces have the same shape, but I am not able to find a solution to this.
I am now trying to do this using four cells, so the number of possible combination is five. I would like to find resulting surfaces which have the same shape regardless rotation or flip like these here:
So far, I am just deleting surfaces which have the same centroid after moving all of them in the same point, but it doesn’t work for all of them. As you can see, the two L shaped surfaces above have the same shape but different centroids. These surfaces have the same area, so I can’t use it. I also tried with the perimeter, but different shapes have the same perimeter here.
It isn’t a problem to create the polyominoes, but I want them to be different in shape.
Thanks
3 posts - 2 participants