brodykenrick / text_on_OpenSCAD

A library for putting customised "text on" 3D shapes in OpenSCAD with changeable fonts, languages/scripts, text direction.
GNU Lesser General Public License v2.1
140 stars 30 forks source link

Text on inside of cylinder #14

Open aleung opened 6 years ago

aleung commented 6 years ago

I want to put text on the inside of cup shape object. With text_on_cylinder the text I get is flipped (because it's for reading from outside). How can I make text readable from inside?

brodykenrick commented 6 years ago

Hi Leo,

I didn't have that case in mind when I coded this (it was very much about putting words ON objects and not inside) - but you might be able to do a trick with hacking the code and reversing the r1/r2 in the internal function/module.

This is the line of interest: https://github.com/brodykenrick/text_on_OpenSCAD/blob/master/text_on.scad#L282

Good luck hacking - and if you have success perhaps look to make a text_inside_cylinder function and a pull request!

brodykenrick commented 6 years ago

oh, you might also just want to use a backwards font -- http://www.fontspace.com/category/backwards

aleung commented 6 years ago

@brodykenrick Thank for your prompt reply. I'll first try to 'hack' the code as you advised. Will send RP if I successfully make it.

BTW, what do you think of adding additional parameter side = "inner" | "outer" (default) rather than adding another function?