generative modeling for Rhino
In response to this discussion:
I am posting my definition for generating an open foam mesh.
(I didn't post back at the time because there were some troubles with weaverbird back then and I was having to use some ugly workarounds, but now that is all fixed)
To sum up the approach -
take a random cloud of points
generate the 3d voronoi
scale the edges of the cells towards their centres, and also towards the centres of the faces.
connect these 2 sets of scaled edges with mesh quads and join
cull some of the outer faces
subdivide and smooth with weaverbird
(In the video there were some other variations on the smoothing/relaxation, both of the initial point positions and the final mesh, using hoopsnake and/or kangaroo)
here is my definition (I did it for my students of the A³ - Algorithmic Architecture Advanced seminar).
The first image I've done using this definition, a torus and random points on the torus.
The secound one is done with the same definition, a torus and points in the center line of the torus.
If your freeform shape is a closed Brep than it should work.
Hope it is like you expected.
Thank you so much Martin! I will try it out later, I am sure it will work well!
Ive been playing with your definition. It is super interesting, but
Is there anyway of developing the definition so that it does not have bounding geometries? I know the voronoi always makes a bounding box, even if you dont input it, but Im personally interested because your definition has the capability of making bubble like structures, therefore creating some kind of interesting spatial condition. But when inputing a custom bounding box, these 'bubbles' are cut by he bbox.a definition with such potential is confined into basic geometries. Does the definition have the capability of being more 'free form'?
sorry for being so especific, its just a concern to see if there is a way of further developing the def.
the first picture shows best what I meant, but it seems that the geometry is built and cut off by the torus geometry. The original look of the shape is gone more or less. What I would like to achieve is a porous structure which is generated from the outside to the inside to maintain the original shape as close as I will define...
A great working process,if i got the time, i will try it out! good stuff gents!
Hi Juan-That looks great. I am wondering how you close the open end of the mesh to make it water tight for 3D printing? I'm trying to 3D print something like this but now clue how to turn it into a closed mesh/Brep. Thanks in advance.
my rhino5 is no loading the meshdual component.
Hi Stefano, that's odd - It's working fine for me in the latest Rhino5 64bit with the latest GH.
Is the MeshDual.gha in your Special Folders>Components Folder ?
yes it is there.
could it be the wrong GH version ?
It was written a while ago, so should work even with the previous GH versions. Your screenshot below suggests you still don't have this component installed though.
Try downloading the file below and dragging onto your grasshopper window:
(it should then show up under Mesh>Triangulation)
why is that?