Converts STL files to GIF animations
Add this line to your application's Gemfile:
gem 'stl2gif'
And then execute:
$ bundle
Or install it yourself as:
$ gem install stl2gif
- ImageMagick
- Povray
require 'stl2gif'
s = Stl2gif.Stl.new('test/fixtures/test.stl')
s.generate_frames
# temp_gif is a tempfile
temp_gif = s.to_gif('test')
- Fork it ( https://github.com/lainventoria/stl2gif-ruby/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request