img2scad - Convert images to OpenSCAD structures
<https://gitlab.com/engmark/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://gitlab.com/engmark/img2scad/-/issues.
Raw data
{
"_id": null,
"home_page": "https://gitlab.com/engmark/img2scad",
"name": "img2scad",
"maintainer": "Victor Engmark",
"docs_url": null,
"requires_python": "",
"maintainer_email": "victor@engmark.name",
"keywords": "image images height heightmap heightmaps elevation convert converter OpenSCAD SCAD",
"author": "Victor Engmark",
"author_email": "victor@engmark.name",
"download_url": "https://gitlab.com/engmark/img2scad",
"platform": "POSIX",
"description": "img2scad - Convert images to OpenSCAD structures\n<https://gitlab.com/engmark/img2scad>\n\nDefault syntax:\n\nimg2scad [-b|--base=N] [-l|--log] < input_file\n\nDescription:\n\nFor each pixel in the input, it will create a cube in the output. The height of\nthe cube corresponds to the whiteness of the corresponding pixel.\n\nIf -b or --base is specified, all values will be shifted by that value. This\ncan be positive or negative. This can be used to output zero values.\n\nIf -l or --log is specified, the logarithm of the grey values will be used for the output.\n\nExamples:\n\nimg2scad < example.png > example.scad\n Convert example.png to example.scad.\n\nimg2scad -b 1 < example.png > example.scad\n Convert example.png to example.scad, with a \"bedrock\" of height 1.\n\nimg2scad -b 2 -l < example.png > example.scad\n Convert example.png to example.scad, taking the logarithm for the height\n and preserving the black pixels.\n\n<http://www.thingiverse.com/thing:4448>\n\nBugs:\n\nPlease submit bug reports at https://gitlab.com/engmark/img2scad/-/issues.\n",
"bugtrack_url": null,
"license": "GPL v3 or newer",
"summary": "Image to OpenSCAD converter",
"version": "0.5",
"project_urls": {
"Download": "https://gitlab.com/engmark/img2scad",
"Homepage": "https://gitlab.com/engmark/img2scad"
},
"split_keywords": [
"image",
"images",
"height",
"heightmap",
"heightmaps",
"elevation",
"convert",
"converter",
"openscad",
"scad"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "cb17111d0aff054b87416dbd86df0a90c7d0b66dfb8779b3c03475b122f2ada0",
"md5": "415f3d9fb53ababa095850b206fcf858",
"sha256": "3b277e2922840ac9bce8e63e0a0f453b16249ab7e42ee20c4b234fa51bab34ee"
},
"downloads": -1,
"filename": "img2scad-0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "415f3d9fb53ababa095850b206fcf858",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 16396,
"upload_time": "2023-09-18T07:37:25",
"upload_time_iso_8601": "2023-09-18T07:37:25.041347Z",
"url": "https://files.pythonhosted.org/packages/cb/17/111d0aff054b87416dbd86df0a90c7d0b66dfb8779b3c03475b122f2ada0/img2scad-0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-18 07:37:25",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "engmark",
"gitlab_project": "img2scad",
"lcname": "img2scad"
}