Assign a definition to a shape

Hi,
I made a definition with the intent to create a sort of texture for a project element I am working on. I am now trying to work out which way to go in order to assign the pattern to a given shape.

I am attaching .gh definition and .3dm shape for a better understanding.

shape.3dm (2.2 MB) Passeggio pettinato.gh (8.4 KB)

Anyone can help?

Passeggio pettinato_re.gh (19.0 KB) !

1 Like

Well, judging by that python component right at the beginning of the definition, I was well away from finding a solution by myself.

Thanks for helping out.

Looks like your initial curve is extremely far away from the origin. Any reason for that?
I didn’t download your 2.2 MB Rhino file because @HS_Kim’s code works with internalized geometry.
FYI

Hi @Joseph_Oster
which curve are you referring to?

The perimeter curve that defines the Boundary surface.

crv_far_away