Culling out surface holes for geometry population

Hi everyone, I am new to the forum but have a few questions about the surface created in this script. The goal is to randomly and evenly populate this entire surface. There are two issues with this approach that I would appreciate some input on.

  1. How can the interior holes (lighter green in image) be culled out of the populate geometry selection?

  2. Is it possible to populate this geometry evenly independent of the size of the surface? Right now a large surface and a small surface are each populated with the same amount of points creating very different densities.

Any help is appreciated, thanks!

FORUM QUESTION SCRIPT.gh (19.9 KB)

casting closed planar curves as surfaces will just create a planar surface for each curve

by using the proper Boundary Surface component the holes will be recognized automatically :+1:

casting curves as surfaces:

Boundary Surface component:

you can set the number of points each geometry gets populated by as a function of -for instance- the area of the surface itself:

but keep in mind that Populate Geometry turns a bit slow for complex trimmed surfaces and high number of points (due to the fact that the component does its best to create an even-ish point distribution)

FORUM QUESTION SCRIPT_inno.gh (22.1 KB)

Thank you Inno, that’s exactly what I needed!

1 Like