Skip to main content
Participant
December 15, 2023
Answered

Generate dots with fixed size

  • December 15, 2023
  • 1 reply
  • 733 views

Hi all,

 

I am trying to make circle filled with two sets of smaller circles.

The two small circles need to be fixed sizes.

 

I tried Fillinger and Circle Fill script, but they tend to resize the circles.

Moreover, it is hard to control to fill with circles in fixed sizes.

Is there way to fill circle with fixed size objects?

 

Thank you in an advance.

This topic has been closed for replies.
Correct answer m1b

Hi @Eric342772373kfu, you will get closer to what you are asking by commenting out two lines from the Fillinger.jsx script.

 

Add  //   before these two lines—334 and 335:

You can then set the max and min to adjust the number of items added. Minimum spacing might help too.

 

Note that this might not give as visually harmonious results as the original, because the algorithm is based on triangles and scaling the item to fit the triangle. There is much room for refinement, such as choosing the 3mm circle for smaller triangles and the 5mm for larger. Or maybe calculating the triangles differently. I'm not experienced with this algorithm at all.

 

Anyway maybe that helps?

- Mark

1 reply

m1b
Community Expert
m1bCommunity ExpertCorrect answer
Community Expert
December 15, 2023

Hi @Eric342772373kfu, you will get closer to what you are asking by commenting out two lines from the Fillinger.jsx script.

 

Add  //   before these two lines—334 and 335:

You can then set the max and min to adjust the number of items added. Minimum spacing might help too.

 

Note that this might not give as visually harmonious results as the original, because the algorithm is based on triangles and scaling the item to fit the triangle. There is much room for refinement, such as choosing the 3mm circle for smaller triangles and the 5mm for larger. Or maybe calculating the triangles differently. I'm not experienced with this algorithm at all.

 

Anyway maybe that helps?

- Mark

Participant
December 15, 2023

Thank you for the swift reply.
This is working well!

m1b
Community Expert
Community Expert
December 15, 2023

Great to hear!