img2scad 0.3
Image to OpenSCAD converter
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 email bug reports to victor dot engmark at gmail dot com.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| img2scad-0.3-py2.6.egg (md5) | Python Egg | 2.6 | 2010-10-19 | 6KB | 592 |
- Author: Victor Engmark
- Home Page: http://github.com/l0b0/img2scad
- Download URL: http://github.com/l0b0/img2scad
- Keywords: image images height heightmap heightmaps elevation convert converter OpenSCAD SCAD
- License: GPL v3 or newer
- Platform: POSIX,Windows
-
Categories
- Development Status :: 3 - Alpha
- Environment :: Console
- Intended Audience :: End Users/Desktop
- License :: OSI Approved :: GNU General Public License (GPL)
- Operating System :: OS Independent
- Programming Language :: Python :: 2.6
- Topic :: Artistic Software
- Topic :: Multimedia :: Graphics :: 3D Modeling
- Topic :: Multimedia :: Graphics :: Graphics Conversion
- Package Index Owner: l0b0
- DOAP record: img2scad-0.3.xml
