Categorize and Reassign Radius Values of Circles

19_MC_SCALED_JUST CIRCLES.3dm (67.8 KB)
19_MC_SCALED_JUST CIRCLES.gh (18.6 KB)

I’d like to take a list of geometries (in this case, circles), categorize them by size, and make each member in a category, or range, the same size. For instance, in the attached example, any circle with a radius above 2.5 is assigned a radius of 2.5 and any circle with a radius below .5 is assigned a radius of .5. I’d also like radii from .5 to 1 to equal 1, from 1 to 1.5 to equal 1.5, and from 1.5 to 2 to equal 2. There must be a better way to do this than my current, somewhat crude, approach. Any suggestions greatly appreciated!

Screenshot of current approach:

You can use Pufferfish plugin’s Round To Nearest component.



19_MC_SCALED_JUST CIRCLES_re.gh (18.8 KB)

Or check this as well.


19_MC_SCALED_JUST CIRCLES_reV2.gh (25.4 KB)

Thanks, HS_Kim! This is very instructive—much appreciated.