Tangent Line Connection Between Slotted Patterns

Hi everyone,

I need some help in figuring out how to connect the pattern I have created by means of alternating tangent lines.
The cells have been predefined (rectangles) that will have full rounds at each end thus creating “slotted holes”.
To date I have found that only circles can be connected by means of tangent lines in GH.
I have started to construct a script in which I created the necessary circle information, culled the pattern where necessary and tried to connect them by means of interior or exterior tangent lines.
The smaller circles should be connected to the next rows larger circles and vice versa.
See the script goal constructed in Rhino.
My goal is to use the negative space created by these connections.
Am I on the right path and what is necessary to align each cell?

I have attached the GH file with all data internalised.

Thanks!


Slotted Tangent.gh (332.6 KB)