Islamic Patterns

Hi,

I am trying to recreate islamic patterns to eventually cut out, i am having difficulty in creating lines between the branchs of geometry. I have attached the script i have created and an imige of what i want to acheive. The red lines were drawn using grasshopper and the black lines were drawn in rhino. Any help would be appreciated.