Hello, I’m trying to recreate a Voronoi-based porous cylinder model from a research paper using Rhino 8 and Grasshopper, but I’m having trouble with the Solid Difference operation.
The model uses Voronoi cells generated on the XY and XZ planes, followed by Offset, Extrude, and Cap Holes operations. When I bake the geometries from each branch separately and run Check in Rhino, they are all valid, closed solids. However, the Solid Difference operation involving both branches produces an “Invalid Brep.”
I’ve tried changing the tolerance, the Populate 2D seed, and the order of the cutting objects, but the problem remains. I also tried subtracting the two branches from the cylinder sequentially. The first operation returned a “Closed Brep,” while the second returned an “Invalid Brep.”
What could be causing this issue? How can I successfully complete the Boolean operations and obtain the porous cylinder shown in the paper’s final image? Are there any connections or steps in the workflow that I should correct?
I’m attaching the Grasshopper definition, the Rhino file containing the baked geometries, screenshots of my current result, and the target model from the paper.
I would really appreciate any help or suggestions. Thank you!
The problem is that many of the cutters touch or overlap each other. Boolean operations don’t handle coincident faces like that well, and the result ends up with edges shared by more than two faces, which is why it’s invalid.
With a cylinder radius of 10 and a 20×20 Voronoi rectangle, one pore corner landed almost exactly on the cylinder wall, which also causes a bad edge. A slightly smaller radius will avoid this.
Hi Dale, thank you for checking my file and explaining the issue.
I tried reducing the cylinder radius as you suggested, but the Solid Difference operation still returns an “Invalid Brep,” and I’m unable to obtain the final porous cylinder.
Could the touching or overlapping cutters still be causing this? How would you recommend modifying them to resolve the issue?
Unfortunately, this is not the model we were expecting to receive. We need a model that is clinical-grade. I have attached an image of the model I would like to achieve.
I’ve also added the option of a margin between the cylinder and the box that defines the Voronoi limits to help avoid edge artefacts. And a final step to remove isolated fragments that can result from the booleans.