Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naoty/stlgen
STL generator
https://github.com/naoty/stlgen
Last synced: about 1 month ago
JSON representation
STL generator
- Host: GitHub
- URL: https://github.com/naoty/stlgen
- Owner: naoty
- License: mit
- Created: 2014-01-04T03:48:40.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-04T15:42:13.000Z (about 11 years ago)
- Last Synced: 2024-10-22T13:59:02.130Z (3 months ago)
- Language: Ruby
- Homepage: http://rubygems.org/gems/stlgen
- Size: 129 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# STLgen
STL generator.
## Installation
```sh
$ gem install stlgen
```## Usage
```rb
require "stlgen"stl = STLgen::STL::Cube.new(width: 1, length: 1, height: 1)
data = stl.generate
File.write("cube.stl", data)
```This code generates [examples/cube.stl](https://github.com/naoty/stlgen/blob/master/examples/cube.stl).