Perforated surface with adjustable perforation percentages

Hello,

I’m working on creating a regular perforated surface with adjustable perforation percentages.

The script I’ve developed so far functions but is limited to rectangular shapes and tends to be quite slow to compute. I’d greatly appreciate any suggestions from the community on improving the my script.

Thanks in advance!

Perforated surface % meter_forum.gh (19.5 KB)

  1. Find the slow parts (‘Display | Canvas Widgets | Profiler’) - in this case it’s RDiff

  2. Avoid the slow part :bangbang:

I made some “creative choices”…

  • Choose percentage of area using the ‘Pct’ slider.
  • The ‘Margin’ slider (blue group) allows a gap between circles.
  • The Dim and Min components constrain circle radius.


Perforated surface_2025Jan27a.gh (14.6 KB)

Thank you, Joseph, for your excellent suggestion.