Loop Operation with Anemone

Hi All,

I am trying to learn on looping operation in Grasshopper. My goal is to loop a process starting drawing circle, find the intersection point and use that point to draw a new circle. I wish to repeat this process but i am new to looping.
Note that the current circle radius is 6000, what if i have variation of radius? For example 6000,6000,6000,6000,6050,6030,6020. How do i loop with that variation of radius?

Loop.gh (21.3 KB)

Working so far from the origin can be problematic: {5.6023e+6, 3.1486e+6, 0}

The difference in circle radii is very small and will not be discernible.

Do you really need Anemone for this?


circles_2020May06a.gh (22.0 KB)

I just want to learn to use loping operation, that’s all

Why do it the hard way? Save it for something where it’s necessary.

Correction - one too many circles:


circles_2020May06b.gh (23.5 KB)

To be less subtle about it:


circles_2020May06c.gh (24.8 KB)

circles_2020May06d
circles_2020May06d.gh (22.6 KB)

A basic and not perfect example. The loop takes the last drawn circle, finds the intersection with the curve, creates a new circle center point a bit further along the curve and then draws the next circle.

CircleLoop.gh (6.1 KB)

@michaelkreft hat if i wish to control the radius of the circle with a list, where can i incorporate it?

In that example, when the new point for the next circle is created, it has to be placed a distance down the line so the resulting circles are tangential, based on a list of radii. I’m not sure off the top of my head how to do that…

Here is an example where looping is really necessary:


sticks_2017Mar21a