Overlapping curve subdivision

Hello,

I hope someone likes to help me out with this rather little task (but big enough to keep me off from lots of other work :frowning: ).

I do have two 2d curves creating tweens:

I want to subdivide it like this (I made a slight offset to show you the overlap)

I need to subdivide these curves in 2d because I want to project them and apply the following 3d cell, which is build from these 4 curves:

I just need full cells, so special cases at ends can be ignored. I hope someone would like to help me out. :slight_smile:

question.gh (6.3 KB)

I am not sure I understood you, but is this what you’re after?
curves2.gh (6.0 KB)
curves2

Hello, thank you for helping.

No, I just need a subdivision of the tweens like shown in picture 2. The outline is the result of this:

does this makes more sense? I do have the rest. Its just about shattering the curves

I still don’t get you, What I understand is that you need the sections of the tweened curves that are confined within each cell (defined by its perimeter) and you want them grouped by cell.
(in your example 4 groups, and also some might overlap)
no?

oh, now I get it!
you want a tiling of this form that morphs along the tweened curves

I just need the tweened curve shattered in a way that the green/red sub curves are created (a big plus is having them sorted as one cell). Forget about the blue outline.

Once I have them shattered I can plug them into my main script to create the 3d pattern, which needs these 4 curves as input.

Ok, now I get you.
The diagonal bit has the same horizontal length as the other parts?

the ratio of the diagonal bit can be changed in my script. Its not relevant

Sorry man, this is over my level. I guessed breaking the curves into sections and using relative items would do the work but personally I’m not that proficient with the notation.
I hope somebody else will help you!

1 Like

no problem, man. Thank you for trying. :slight_smile:

1 Like

btw…

I don’t want to hijack your question but it might be relevant:
I’ve found this link and studied it, but never found a way to apply it as input with the tree modules (tree item/relative items etc)

trees

I’m bringing it up because I think this is the way forward in this case…

Thanks,

I would have written a script here, since this is easier as dealing with tree components. If nobody can or is willing to help, I will do it tomorrow and post it here.

I’ve done it. Not nice, but it works:

question_re.gh (17.6 KB)

4 Likes