generative modeling for Rhino
This is my first Grasshopper project and I am trying to do something somewhat simple. I have created a voronoi surface from a bunch of points on a curved mesh. The resulting voronoi surface, however, is flat where I want the voronoi surface to be projected onto the surface that the points represent.
You can clearly see what I am talking about in the below link. I have the voronoi diagram in the left image, but I want to get it like the image on the right.
Is it possible to import a mesh or surface as a projection guide shape for the voronoi mesh?
ps. I'm really excited about what i've seen with grasshopper, just a great tool. i'm looking forward to working more with it.
In a way you already answered your own question.
The component you are looking for is Project (a curve onto a brep). Each Voronoi cell is a closed polyline curve, that you can project onto the guide surface.
There's a [Map To Surface] component that probably does what you need.
I tried map and project to see if there is any difference in outcome.
From what the voronoi component does with 3d points as input, I'd say project still is the correct way. Map might distort the curves and I noticed it doing strange things with the curves that do fit the surface entriely.
Ok thanks for the help, but I am now having trouble executing this. So I have my guide surface as a brep, but I cannot get the voronoi cells to project to it. Below is an image of what I'm doing, I've tried different arrangements of this but I'm not getting any affect.
There are two different project components. the one you're using projects a brep outlien to a surface.
The one I was referring to can be found in the curve>util tab.
Great! Thanks that did the trick, I was just selecting the wrong Project component.