img2scad 0.3

Image to OpenSCAD converter
img2scad is a Python utility to convert images to OpenSCAD structures.

Default syntax:

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

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.

last updated on:
October 21st, 2010, 1:32 GMT
price:
FREE!
developed by:
Victor Engmark
homepage:
github.com
license type:
GPL v3 
category:
ROOT \ Multimedia \ Graphics

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT