I would like to create simple 2d-spirals. The center points I want to use from circles I have created before and the spiral should stay within the circle.
Hi again, so I’m having this “conceptual” problem here, where I have several lines as input, which all have this area where they are in closer proximity. Now I want to generate offset curves that kind of meander in between this lines:
…in the sketch, the black lines are the input lines and the pink ones I want to generate.
Tween curve doesn’t work because of the exceptions when two lines are on the same side.
Any Suggestions to solve this geometrically with a grasshopper script?
So this is all in 2D. The black inputs are simple lines and the red curves are planar open curves.
…and preferably I look for a solution working with the “native stuff”
Like said by @PeterFotiadis there are many things that could lead to a difficult solution. C# Python seems better as they allow to treat more scenarios. By the way it is a nice problem.
Okay, I see your point, Pfotiado & Laurent. I understand a bit of Python, but C# I cannot read that good… and in the end I think I should at least understand the code.
At the moment for you problem it is not really a problem of Python or C# but an algorithm, strategy, object problem.
There are some simple cases but also some other more complex.
For example
generate lateral lines a distance D (simple with curve offset loose )
Generate some offset/pills at distance D*1.5 (I use Clipper that can offset a line)