generative modeling for Rhino
I'd been looking for a good way to automate the instantiation of text elements in a cut file for CNC-milling, and found many of the currently available single-stroke font solutions unsatisfactory. I checked out this discussion, which provided a good starting point:
http://www.grasshopper3d.com/forum/topics/invalid-text-lines-single...
But I found that when I was trying to array a few thousand text elements with the tools I found there, calling the text command from vb in gh was making the whole process really pretty slow, so I developed a way to bypass standard text calls by making my own simple set of curves that represent different characters and dynamically arraying them on target planes.
I've attached both the Rhino file that I used to generate the base curves, as well as the GH file, which has both the means for making your own font and a cluster that should work standalone for anyone that wants to more easily array character tool paths with the curves I've already defined. It's a bit of a hack, but the results are a lot cleaner and faster than the other solutions I've seen, so hopefully it can help a few people out.
Right now it just does spaces and:
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ/_-
(keep in mind, it's case sensitive, so it will only recognize these exactly)
I just used these because they're all I need right now. But the definition has all of the steps you need to build your own "font", or add onto this one if you like.
Tags:
© 2012 Created by Scott Davidson.
Powered by