I am pretty new to rhino and grasshopper. I have been using it few days trying to figure out whether it could solve the problem I have. I would like to make perforated structures to be used as molds. As in the picture below:
My approach is probably far from optimal, and there are some issues. So I am asking here if anyone has any tips.
The basic shape I am able construct from rectangles, lofting, and filleting top edge and then subtracting the internal shape from the outer shape.
But the perforation becomes issue. I have problems dividing the polysurface into evenly distributed points. I can decompose the brep surface into subsurfaces and adding points to each of those and using cylinder to cut holes. But issues arise with the corners, and with the shape (truncated pyramid), distance at the bottom is larger than at the top.
Below is attached my grasshopper file. I have disconnected the trim solid so that it would be faster (just constructing the shape and cylinders for cutting). It is still pretty heavy.
Consider using ShapeMap plug-in, it seems to be a perfect application in your case.
For perforation itself, there is a lot of similar posts on this forum, as mentioned above
Oh, wow! Good discussion here! Need to try the shapemap. But yep, same question, does it do the holes? At the end I am going to 3D print the structure. So I need an stl with the holes included.
And also, if there is some better way to do this than my approach? I suppose the problem is the polysurface that is not easy to subdivide well. Been looking for curve revolution as well, but it overfolds itself quite easily at the corners.
shapemap itself is not making holes. As I said, it maps geometry, which makes sense from the name of the plug-in. And i think it is obvious from Jessesn solution that you can use pipes to boolean difference the shape and get holes. Or you can develop more complex solution for dividing the surface itself by mapped pulled circles, produced by shapemap.
Your shape is easy to subdivide, check out the first reply to your post, it shows very good solutions with kangaroo by Daniel P. you can use in combination with shapemap to get very good results for your shape. Just experiment and update us if you have questions