Oblong Tiling

Did the AI create the script as well, or did you create it out of the math the AI explained to you?

I find it amusing how the AI is dead set on using the Rectangle component last. It probably thinks to itself: “What is an obround? A semi-circle ended rectangle. Grasshopper has a rectangle component that fillets. What are its inputs? Plane, X domain, Y domain, fillet radius. How do I get those inputs…”

Most people, I think, would make the obround and use transformations to array it.

The original scripts were created using native components.

Then, I asked Claude to create an HTML simulation. Since it implemented the simulation correctly in HTML using mathematical methods, I asked it to explain the math behind it, and then I recreated it in Grasshopper.

@seg I was inspired by your approach of using the internal central cross of the obround for displacement aswell as your comment on how the pattern needs to be staggered in either the horizontal or vertical orientation. This script achieves a “regular” tiling at 0 and 90 degrees by sacrificing closest packing:


 

The logic is much simpler:


Oblong Tiling VR 3.gh (26.7 KB)