Skip to main content

Image to OpenSCAD converter

Project description

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

Default syntax:

img2scad [-m|–minimum=N] < 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 -m or –minimum is specified, all values will be shifted by that value. This can be positive or negative.

Examples:

img2scad < example.png > example.scad
Convert example.png to example.scad.
img2scad -m 1 < example.png > example.scad
Convert example.png to example.scad, with a “bedrock” of height 1.

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

Bugs:

Please email bug reports to victor dot engmark at gmail dot com.

Project details


Download files

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

Built Distribution

img2scad-0.1-py2.6.egg (5.7 kB view hashes)

Uploaded 2 6

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page