Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5800

Find surfaces with the same shape

$
0
0

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:
image
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

Read full topic


Viewing all articles
Browse latest Browse all 5800

Trending Articles


Practice Sheet of Right form of verbs for HSC Students


Sarah Samis, Emil Bove III


ZARIA CUMMINGS


Need radio code for IVECO Delphi Aptiv FJ5 RBT M16


Black Angus Grilled Artichokes


Ed Sheeran – Sapphire – Pre-Single [iTunes Plus M4A]


Sunny Garcia’s Ex-Wife Colleen McCullough


99 God Status for Whatsapp, Facebook


Funeral of Sir Warwick Franklin


MHDD