Grasshopper Sponge Script Geometry applied to Polysurface

Howdy,

Been working way too late into the night on a script meant to combine the sponge geometry Grashopper script posted here a few years ago with an already existing polysurface I’ve created. I’ve been using a combination of Dendro and Wavebird to try to make this work, but I hit a wall.

Long story short, I need some guidance - I’ve attached both my Grashopper and Rhino. Any help is appreciated!

10.16.25 combination.gh (42.3 KB)

10.16.25.3dm (18.6 MB)

Could you illustrate your requirements? How would you like to combine the sponge geometry? Thank you.

something like that?

sponge_Slow_jvs01.gh (30.0 KB)
when you increase the number of points it gets slower and slower…
since we have subD the same could be done with breps not using meshes not using waeverbird…

Hey Jessesn,

I want the polysurfaces I input (or mesh, whichever is easier) to be made from the sponge geometry. We’re going from a solid object to a porous one.

Hey Jacob, This is almost exactly what I was looking for thank you! if I wanted to make the sponge geometry to be smaller and the spaces between thinner like the original sponge script how would I do that?

Jessesn, something like this excet the interior populated much more densely

play
with the number of points generated by the “populate 3D
play
with the scaling factor a little later in the definition
make sure to lower the catmull clark to one before you play with the oter sliders otherwise you wait a long time for the computation…

Sure, you can achieve it with Dendro, and for your reference.
CombineSponge.gh (1.3 MB)