![Fit text to arbitrary surface in OpenSCAD](https://cdn.thingiverse.com/renders/83/58/5b/10/fe/a518e324a96a943590df9c8fe372cde6_display_large.jpg)
Fit text to arbitrary surface in OpenSCAD
thingiverse
This uses my Hershey fonts and function evaluation libraries to provide a module that fits text to an arbitrary surface with any degree of distortion, such as uv mapping. Check out the demo code in maphershey.scad. To use this in production, download the latest Hershey and eval libraries from their own pages instead of relying on the ones bundled in the mapshershey-standalone.scad file. Usage: use <maphershey.scad>; mapHershey(text,f="[u,v,0]",font="timesr",halign="left",valign="baseline",size=1) { stylusObject } where 'stylusObject' is whatever object you want to draw the letters with (e.g., a small sphere or a cube or a cylinder). The z-axis of the 'stylusObject' will be facing outward when the text is rendered.
With this file you will be able to print Fit text to arbitrary surface in OpenSCAD with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Fit text to arbitrary surface in OpenSCAD.