Skip to content

Instantly share code, notes, and snippets.

@jay3sh
Created November 29, 2011 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jay3sh/1405079 to your computer and use it in GitHub Desktop.
Save jay3sh/1405079 to your computer and use it in GitHub Desktop.
Generate solids in shape of text
#!/usr/bin/python
import sys
import math
sys.path.append('./src')
from cadmium import *
stlfname = sys.argv[1]
s = Text('Cadmium',
fontpath='DejaVuSerif.ttf', # Give full path on your system
height=5,
thickness=2)
s.toSTL(stlfname)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment