I’m just learning Grasshoper. I want to code, block and list ceramics of the same size. Can you give some guidance.
please post your geometries as Rhino file, or internalized in a GH file
what have you already tried to accomplish that task?
how should these non-rectangular shapes be treated?
seramik.3dm (2.9 MB)
no answer to this, I’ll just consider those as tiles with same size of their bounding rectangle
looks like there are many decimals involved in the sizes of those tiles… out of 1129 rectangles there are 699 unique sizes, many of which just involve like the fifth decimal or so:
I don’t know how you want to proceed, maybe you might want to round to the closest unit like this?
anyway, the way “uniques” are calculated now is by creating a string for each tile, in the form of LONG_SIDE x short_side
, and then processing it with Create Set and Member Index
count_the_tiles.gh (13.3 KB)