Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/naoty/stlgen

STL generator
https://github.com/naoty/stlgen

Last synced: about 1 month ago
JSON representation

STL generator

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).