farrellm / scad-clj

OpenSCAD DSL in Clojure
Eclipse Public License 1.0
318 stars 52 forks source link

Support for OpenSCAD text() #24

Closed mecha1 closed 9 years ago

mecha1 commented 9 years ago

It would be great if scad-clj could support the new(ish) OpenSCAD text() function directly. Currently it looks like scad-clj is doing some magic to generate text as polygons, but it would be much simpler/nicer if the native text() function could be used: https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#Text

mecha1 commented 9 years ago

I created a pull request to add this functionality: farrellm/scad-clj#25. I replaced the scad-clj.model/text function with a new version that implements native openscad text rendering and renamed the existing text function to polygon-text. Please feel free to modify as you see fit -

farrellm commented 9 years ago

Merged, thank you!