Hi,
I made this simple script of Voronoi pattern.
I would like to 3d print each cell seperatly and glue them together, but without knowing their exact order it would be very difficult.
How can I add a number tag as a part of the finel geometry? As in the attached photo for example.
Every edge in the polygon topology has an index.
This definition will etch those numbers into the relative sides of the BREP.
Edges with lengths too small to bear an etching will be excluded.
Clipper PolyOffset is more robust than standard GH Offset(donât know why McNeel doesnât have their own version?) and can be used instead, though it requires grafting in this case to match offset and original curves. And you can sort the points to get a more predictable outcome of the extrusions.
As to tag labels, youâll need a plugin to get curves from digits or letters. Instead of mapping edge topology as @Quan_Li has done, itâs probably sufficient to just number the extrusions as above?
I want to number only the extrusions as geometry of each cell. Iâm trying to change @Quan_Li script to apply only for one edge of each cell.
I would be happy to know if you can give another method @Joseph_Oster
I have something added to my previous post that âengravesâ numbers on the largest face of each extrusion. It depends on an old, funky unsupported copy of Text by curve from Peacock plugin, though that part could be replaced - certainly there is something better now?
P.S. I just got the latest version of Peacock(Peacock - Teen, 2020-09-29) from food4rhino (the link I posted above) and copied only one file (Text by curve.ghuser) to my â\AppData\Roaming\Grasshopper\UserObjectsâ folder. The component is not red anymore with error messages and works as before.
Still a little weird as it depends on a curve and rotation angle instead of a plane. Alternatives? By the way, the component produces surfaces, not curves, I havenât used it much.
P.P.S. Text that follows a âRailâ curve with optional rotation is very powerful and more flexible than a plane. Iâm sure @Dani_Abalde had good reasons for doing it that way. Clever guy!
In the process, I discovered and fixed a significant bug. Code was sorting faces to get the one with the largest area for placement of the labels. But it was ignoring the distinction between vertical (good) and horizontal (bad!) faces. Wasnât a problem when the offset was small but when large, the top and bottom faces have more area then any of the sides, which is bad!! So added the purple group to cull vertical faces and only sort them for the labels.
I also noticed the lag caused by SDiff so inserted a Data Dam(red group) so offset and extrusion distance can be modified without any lag.
I donât know, but doing a C# is quite simple and was already published.
By the way I bought Rhino 8 but I struggle too much with all C# components so I use more Rhino 7. I donât know if I miss something or if I have bad habits from the old Editor!
C#, the standard answer to all missing features in GH. Text to geometry seems like one of those basic things thatâs long overdue in GH, like baking geometry (which thankfully is in R8).
Good offset also, it is said to be better in Rhino 8 but I didnât try.
Shrinkwrap is a wonderful addition but lacks some of the tools from Dendro
One nice addition is also
I built this script with the help of you guys. Probably way too much unnecceray components, but im pretty new to Grasshopper and learning by myself from YT.
Not quite perfect, but works good to me.
There are some issues with the loft component because of the small verticies that the Voronoi componenet produce.
Another issue is with the orientation of the text on the âtagâ surface, but it works for me. voronoi rec.gh (16.2 KB)