The spiral curve node in geometry node is the shape of circle by default, how can I change the shape of the spiral by using my curve outline?
Like this picture below, it's using rectangle outline.
The spiral curve node in geometry node is the shape of circle by default, how can I change the shape of the spiral by using my curve outline?
Like this picture below, it's using rectangle outline.
Here's another take on it:
This GN modifier takes any provided 2D curve, and converts it to a parametric spring. (The curve can be closed, but must not be filled.. that changes it to a mesh, which doesn't work, here)
incoming * turns
points.Position
is transferred to the line from the incoming template, by Index mod(number of points in template)
resulting in the line winding round and round the template, in the flat.You could generate the spring-shape inside the group, instead, or replace the circular wire-profile with some other curve cross-section, if you wanted.
Here's the Blend (Blender 3.1b, but could work in 3.0, by replacing the DomainSize node with an Attribute Statistic node, to make the point-count.. as here )
Sorry, but my mathematics isn't the best so i have this dirty solution which works - but i am sure Robin can make it better ;)
What a basically do is making a rounded rectangle shape, turn that into a curve and give that curve enough count and with that count i just stretch the points on z. "Normally" with a clean mathematics you could calculate all these points.
So here is my node setup:
and this is my result: