# Problem with circles of different radii and fixed distance between them

Hi there, I am new to GH and I am trying to create circles of different radii that have in common that their centers are part of the same line and that the distance formed between the intersection of the line and the circles is constant regardless of their radii. The aim of all of this, is to create a polar array of these geometries so that if i want to change the raidii of a circle it changes everything accordingly.

This is a drawing of the concep, so you can visualize it. Now i will upload what i have done on gh
gafas.gh (24.0 KB)
Im kinda stuck, since i dont know how to create that fix distance that is dependant on the circles.

3 Likes

assuming you have a line along which you want to distribute your circles, if you have n circles you would up with n+1 gaps (because in this image you start and end with a gap)

this might be a stupidly long and straight way to do it:

 looks like I have missed the POLAR thing ]

1 Like

What if the curve is arbitrary, not linear and not an arc?

Anemone loop looks like the easiest and most flexible way?

hehehe that looks like a pretty complicated taskâŚ I would go by angles if it was an arc

for an arbitrary curve I guess I would just ignore the amount of curve that is inside each circle, and try to spread evenly the gaps

but the main problem is that -depending on where a circle is centered- the amount of curve to be spread for gaps also changesâŚ itâs an interesting problem that I wouldnât really know where to start from

Hi, do you know how to change the point of origin in the arrange on grid component?

No such option. But if you tell the problem, perhaps we can find a solution.

i want the geometry to be inside a defined line, that itâs not on the origin, but i still want to be able to change the spacing.

Orient the curves to the target plane.

Arrange in Grid V1 Orient them.gh (21.0 KB)

1 Like

This one (below) is, uh, no.

1 Like

I changed the topic title so it is composed of words with correct spelling

2 Likes

Thatâs fine, thank you.

1 Like

This code is rough (âwarts and allâ) but simple. The Anemone loop is at the bottom. The cyan group defines parameters, including Value List choice of âPATHâ; (blue group).

(Full Size image)
crv_circles_2023Nov4a.gh (44.1 KB)

P.S. There is an error in this code. No time to fix it now, sorry. Du[plicate points and circles, sequence error at the beginning of the loop.

1 Like

Random thought on this. @Joseph_Oster Could do better.
Anyways it uses Kangaroo instead of Anamone. Its just a concept.

Curves.gh (15.7 KB)

Small, subtle error - fixed.

crv_circles_2023Nov5a.gh (34.3 KB)

crv_circles_2023Nov5aa.gh (23.4 KB)

2 Likes

You can use Dash Pattern

circles_gap.gh (7.9 KB)

4 Likes