Voronoi Patterns on angled surfaces

Hi,

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.

voronoi pattern 2.3dm (15.1 MB)

voronoi glass.gh (43.0 KB)

Hi

You can use “Scale component”.

voronoi glass01.gh (26.1 KB)

Hi,

Thanks for this. much appreciated.

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.

voronoi glass01.gh (44.4 KB)

building C Design.3dm (3.4 MB)

Scale is not the same as Offset, they have different results.

Interesting. How did you create the example image?

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?

I don’t see it as “simple” in any way.

I asked claude to see if it could generate a python script for me. but it didnt work either.

Here’s a post about explaining why Claude can’t generate GH scripts and how to get around that problem:

https://discourse.mcneel.com/t/claude-can-build-working-gh-files-if/218779

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.

Voronoi Pattern with repeating geometries - Grasshopper - McNeel Forum

I have never used Claude, I use Codex.

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.

I never said these are same. I just find a way

It’s actually pretty easy to get your voronoi cells to be standardized. You just have to get the input point cloud to be a repeating patter.

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.

https://www.food4rhino.com/en/app/clipper-grasshopper-and-rhino

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 :slight_smile:

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.

voronoi glass01_NL.gh (45.1 KB)