I’m a novice when it comes to grasshopper. But i have been trying to make a small grasshopper script to help me place some circles along a curve. There needs to be circles on either side of the curve. The circles need to be offset from the original curve, and I need to be able to control that distance. I also need to control the distance between the circles and the radius. I got all of that working with divide by length. Maybe not in the simplest way but it works.
The original curve is contained between to curves that run in the opposite direction and the angle between the boundary curves and the original curve isn’t 90 deg.
My problem is that, depending on the angle between the line the circles sometimes end up outside the boundary.
this definition divides the two offsetted curves into a given number of points
it ignores the start/end point of the offsetted curves, the circles around which would partially fall outside your boundary
you can see the resulting distance between circles centers on the Panel component
do you need the circles to be mirrored along the original line or do you need to precisely control the distance between the circle centers?
I changed it a bit. And It works fine If I only take one element. But when I wan’t to do it on a random number of objects it’s doesn’t work. I’m not sure what to do with it. I guess it has something to do with