Number tags for 3d printing

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.

Thank you.


voronoi rec.gh (6.3 KB)

missing

You can do the same thing without the plugin like this:


Voronoi_2024Feb13a.gh (17.7 KB)

Some values of Pop2D ‘S’ (Seed) cause one or more short edges that cause Offset Curve to fail, so I changed the seed value.

As to nnumber tags for 3D printing… maybe later. :wink:

voronoi rec Edited v0.gh (36.7 KB)
need plugins.
Don’t need R8.

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.


1 Like

Thank you.
I will try this method.

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.

Voronoi_2024Feb13b
Full size
Voronoi_2024Feb13b.gh (21.9 KB)

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’ll leave it at that for now.

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?



Voronoi_2024Feb13d.gh (36.1 KB)

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! :+1:

Where did you get Offset Brep component? What plugin is that?

fennec or parakeet. both of them has an offset brep component.

I will try this.
Thanks a lot.

I started to write the white group that shows vectors pointing to the label on each extrusion, thinking it might help orienting the physical pieces.

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.


Voronoi_2024Feb13e.gh (44.5 KB)

There is always more that can be done… :thinking:

Hello
you could also have 3d tag that you can cut. For a simple geometry like that I don’t think it is necessary, because it is here an easy puzzle.


You’ll need Nautilus plugin there, it could be replaced by other plugin outputting text!
20240213_Voronoi_label_LD.gh (14.5 KB)

1 Like

Is there a way in R8 to convert text to geometry without a plugin?

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).

Yes you are right. There is a Text Entity but it doesn’t convert

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
image

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)

missing

“Explode Positions” :question: Can that be done without a plugin?

Nice! I will check it out.

Yes.
Connect the output of this plugin directly to the “cells” node of the Voroni component.