Hi,
I've created python library to generate OpenSCAD source intuitively.
Of course you can use python language powerful functions to generate
your OpenSCAD code.
Feature
Install:
pip install openpyscad
Example:
import openpyscad as ops
c1 = ops.Cube([10, 20, 10])
c2 = ops.Cube([20, 10, 10])
(c1 + c2).write("sample.scad")
Repo:
https://github.com/taxpon/openpyscad.
Cheers :),
It looks very interesting and congratulations on having a go.
There is an existing codebase doing something similar called Solidpython.
- https://github.com/SolidCode/SolidPython
By similar, I mean it also produces OpenSCAD code.
You might consider how your two styles differ and what might be the most
interesting way to proceed.
All the best...
There are multiple projects that do this, the most popular is SolidPython,
https://github.com/SolidCode/SolidPython
How does your project compare to SolidPython, what are the
benefits/advantages?
On 8 January 2017 at 19:38, Takuro Wada taxpon@gmail.com wrote:
Hi,
I've created python library to generate OpenSCAD source intuitively.
Of course you can use python language powerful functions to generate
your OpenSCAD code.
Feature
Install:
pip install openpyscad
Example:
import openpyscad as ops
c1 = ops.Cube([10, 20, 10])
c2 = ops.Cube([20, 10, 10])
(c1 + c2).write("sample.scad")
Repo:
https://github.com/taxpon/openpyscad.
Cheers :),
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
FWIW, I've been trying to collect such tools as a listing here:
http://www.shapeoko.com/wiki/index.php/Programmatic_G-Code_Generators ---
corrections, improvements and additional tools to list would be welcome
(added openpyscad).
William
On Mon, Jan 9, 2017 at 8:32 AM, doug moen doug@moens.org wrote:
There are multiple projects that do this, the most popular is SolidPython,
https://github.com/SolidCode/SolidPython
How does your project compare to SolidPython, what are the
benefits/advantages?
On 8 January 2017 at 19:38, Takuro Wada taxpon@gmail.com wrote:
Hi,
I've created python library to generate OpenSCAD source intuitively.
Of course you can use python language powerful functions to generate
your OpenSCAD code.
Feature
Install:
pip install openpyscad
Example:
import openpyscad as ops
c1 = ops.Cube([10, 20, 10])
c2 = ops.Cube([20, 10, 10])
(c1 + c2).write("sample.scad")
Repo:
https://github.com/taxpon/openpyscad.
Cheers :),
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
...and https://github.com/SquirrelCZE/pycad/
...and https://github.com/vishnubob/pyscad
...and https://github.com/bjbsquared/SolidPy
...and https://github.com/acrobotic/py2scad
...and https://github.com/TheZoq2/py-scad
...and https://github.com/defnull/pyscad
The project death rate seems to reach about 90% after one
year though.
I think for some use cases (like maybe reading data from
a database or something) this is quite a useful approach.
It would be nice to see some more collaboration, crossing
fingers for the new project now...
ciao,
Torsten.