I am trying to create this voronoi pattern on rhino slanted geometry. I managed to give the voronoi pattern, but I am trying to give an offset to individual surfaces that act as ‘mullions’ and then to extrude these ‘mullions’ 150mm inwards.
But only a few of the voronoi shapes did it the rest were errors. Can’t seem to find the issue.
May I further ask how I should approach this script, if I want standarised voronoi patterns (say 5).
For example (image below). There are 5 geometries that repeat themselves, and the bordering ones are just cut. Based of my experimentation, voronoi I could only get random generation.
Off hand, I would say you use two surfaces (per “panel”), one for the example image and another for the space around it that gets the standard Voronoi treatment. Please show us how it’s done?
Basically the problem is Claude only knows about information that has been published. Some of how GH works has never been published and probably ever will be. But if your prompt is sufficiently detailed I found a way to get around this problem.
But the post you refer to seems to use Claude as a chat bot. That’s not the right way to use it.
I installed the Codex/ChatGPT desktop app,I don’t know what is the Anthropic equivalent for Claude. You need to install that, start the MCP server in Rhino and ask Codex to create the script. There is no “give Claude an error message” or “upload a file”. All you need to do is ask for something, and Codex or Claude will connect to Rhino’s MCP server, try to do it, look at the error messages, try to fix it, get it finally working without errors, look at the result, and keep tweaking until it sees what you asked.
Do NOT use Codex or ChatGPT as chat bots. Use them with their agentic app and let them connect to Rhino.
Aha! I was not aware of that sort of capability (I’m just a 3D printing hobbyist), so thanks for that info. I’ll see what I can find out about Codex etc.
Scale gives you a result that is useful to see the geometry with thickness, but I think Joseph is alluding to the fact that scale in this instance does not give you control over exactly how much width youre getting, which is important if Jun wants 150mm mullions.
It’s probably technically possible to calculate what scale value you need for each cell to end up with 150mm, but that would be unnecessarily and tremendously convoluted.
Offsetting curves and polylines in Grasshopper can be very frustrating as different components behave in slightly different ways and they all have different nuances and breaking points when it comes to edge cases.
I’m a big fan of Clipper for offsetting curves because it’s incredibly robust, fast, and gives you lots of freedom. It has its downsides though.
Here’s an example of how you can map a standardized voronoi pattern onto a Poly-Surface. The pattern is continuous and mapped the same way you could expect wrapping paper fold around a box.
In this case I used Clipper because it just makes the booleans and offsetting way easier. There are instances where the trimmed cell is too small in which case I just kept the cell solid.
The script has quite a few sliders that you can play with though, like base grid density, pattern density and seed, and point cloud offset
NB: The script is not particularly robust because I couldn’t find a nice way to map the unfolded shapes onto the original surface, so the script would likely need so tweaking for other Breps. This method also wouldn’t really work for Breps that can’t be neatly unrolled.