Control spiral by the distance between two laps

Hello,

I’m trying to find a way to control the spiral by the distance between two laps (P in the picture)?

This is how the script looks like right now, I can only control the laps of spiral by angle.


Tube.gh (10.5 KB)

Is there a way to make it? Thanks in advance.

Have you already tried the Spiral component?

Where does @Carmell find the Spiral component? And how does it solve the problem?

I have a python spiral that looks very similar to yours but can’t see how it answers the question.

Something along these lines (white group), but as I understand the question, the only known is the ‘P’ value. Pitch needs to be computed.


Tube_2025Feb11a.gh (20.5 KB)

I thought it was a standard component because I already had it in Rhino 6 but instead it’s a plugin.
Spirale.gha (21 KB)

Thanks for your answer, that’s pretty close to what I want to do, I’m wondering if there is a way to keep the length of the spiral fixed

Thank you for the answer, I found this component and still trying to find a way to add it in the script.

I wrote a goofball solution using Galapagos to determine pitch but it’s too awkward to share.

Time for a walk! (and a different approach)

The pitch you mean? If so see attached
Helix_EntryLevel_V1.gh (117.3 KB)

See if this satisfies you.
Tube a.gh (20.2 KB)

‘P’ slider (blue group) is adjustable, a data dam to the right of the white group delays the slow solid difference slightly (2 seconds). ‘resolution’ slider (yellow group) sets the number of points in the circle but shouldn’t have much effect on the result.


Tube_2025Feb11c.gh (25.1 KB)

P.S. Consolidated code to avoid “Draw Full Names”, replaced bits with Extend Curve using ‘-2’ to make the shorter line, moved the Data Dam and added another input so ‘Length’ slider (top left) can be moved without triggering the slow solid difference. Mostly the same.


Tube_2025Feb11cc.gh (24.2 KB)

P.P.S. Changing the ‘resolution’ slider (yellow group) has more effect than I expected but I haven’t tried yet to understand why :question:

Aha! Off-by-one error due to initially using Range (long gone). Removed ‘resolution’-1 and the spiral now remains the same when ‘resolution’=10 or ‘resolution’=100 - except the slot gets slightly longer with more points, but that makes sense as it gets more accurate.


Tube_2025Feb11d.gh (24.5 KB)

Thanks you all for helping me find the answer, I really appreciate it :raised_hands:

Games can be played with spiral radius and pipe radius to affect the cut slot. This version replaces Addition of spiral radius and tube ‘Thickness’ with an Eval component that accepts those two parameters (‘R’ and ‘T’). ‘F’ is R+(T/2) for a result closer to your original GH.


Tube_2025Feb12a.gh (24.9 KB)

Version ‘b’ adds a pipe radius input (‘Rp’) and uses ‘F’ = R+(T/2)+Rp so cut depth is always half the tube thickness.



Tube_2025Feb12b.gh (25.9 KB)