Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Image to OpenSCAD converter

Project Description

img2scad - Convert images to OpenSCAD structures <http://github.com/l0b0/img2scad>

Default syntax:

img2scad [-b|–base=N] [-l|–log] < input_file

Description:

For each pixel in the input, it will create a cube in the output. The height of the cube corresponds to the whiteness of the corresponding pixel.

If -b or –base is specified, all values will be shifted by that value. This can be positive or negative. This can be used to output zero values.

If -l or –log is specified, the logarithm of the grey values will be used for the output.

Examples:

img2scad < example.png > example.scad
Convert example.png to example.scad.
img2scad -b 1 < example.png > example.scad
Convert example.png to example.scad, with a “bedrock” of height 1.
img2scad -b 2 -l < example.png > example.scad
Convert example.png to example.scad, taking the logarithm for the height and preserving the black pixels.

<http://www.thingiverse.com/thing:4448>

Bugs:

Please submit bug reports at https://github.com/l0b0/img2scad/issues.

Release History

Release History

This version
History Node

0.4

History Node

0.3

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
img2scad-0.4.tar.gz (3.3 kB) Copy SHA256 Checksum SHA256 Source Oct 18, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting