Helical tube to repeat on curve

Hi guys, I need help with a script for GH, to be used for repeating an instance of a helical curve on curves projected onto a surface, in a faster way than doing it manually one by one.

Please note that afterwards I need to perform a Boolean difference, with the inner part being 0.6 × 0.6.

Any quick solutions are welcome.

istanza da ripetere su curva.igs (2.9 MB)

I’m not sure if this is what you want, just fyi.
HelicalTubes.gh (42.5 KB)

Yes, thanks—that’s exactly what I was looking for, but it doesn’t work on a polysurface. How should I proceed? I’ll send you the entire file with the curves so it’s clearer where I want to apply the tubes. Thanks for your help.

Tacco- x tubi.igs (2.1 MB)

This is what I was doing manually.

FYI.
HelicalTubes4Brep.gh (60.4 KB)

Your solution caused issues: as you can see from the images, the tubes in the upper area were deforming, creating more and more anomalies. I’m sending the script again with “Internalize Data.”

HelicalTubes4Brep.gh (11.7 KB)

Tubo ellicoidale su curva.igs (1.6 MB)

Anyway, yesterday I also asked for help in the Italian forum: another user @maje90 solved the issue, but I’d still like to know how to fix it in your script. Also, I had asked in the forum how to ensure the tubes are oriented along the X direction rather than the surface normal, since they must release from a mold: when aligned to the surface normal they create a lot of undercuts.

Please try to use Perp Frame creating the CPlanes, and fyi.


HelicalTubes4BrepPerpFrame.gh (318.2 KB)

1 Like

But what is the Brep connected to? When I select the icon, I don’t see any wire connected.
Second question: everything is fine, but one tube is behaving in an unusual way.

The Brep was left over from the previouse GH definition and is not needed in the current GH file.

You can try handling it manually; I’m just providing a reference solution for you :slight_smile:

Okay, but what I don’t understand is this: if I create a new Brep from another geometry, delete the old Brep icon and generate a new one (icon), what does it connect to among the various icons? That’s the point I’m missing.
As for the anomaly of the wrongly oriented tube, I can also fix it manually, it’s not a problem. It would only have been an issue if, for example, out of 100 tubes, 50 were oriented incorrectly relative to the normal.