discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Introduction of OpenPySCAD

TW
Takuro Wada
Mon, Jan 9, 2017 12:38 AM

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

  • Intuitive operations
  • Supporting both python2 and python3
  • Supporting modifiers as well

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")

will generate "ssample.scad" file with OpenSCAD codes

Repo:
https://github.com/taxpon/openpyscad.

Cheers :),

Takuro Wada  taxpon@gmail.com

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 - Intuitive operations - Supporting both python2 and python3 - Supporting modifiers as well 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") # will generate "ssample.scad" file with OpenSCAD codes Repo: https://github.com/taxpon/openpyscad. Cheers :), # Takuro Wada taxpon@gmail.com
MS
Mark Schafer
Mon, Jan 9, 2017 4:24 AM

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...

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...
DM
doug moen
Mon, Jan 9, 2017 1:32 PM

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

  • Intuitive operations
  • Supporting both python2 and python3
  • Supporting modifiers as well

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")

will generate "ssample.scad" file with OpenSCAD codes

Repo:
https://github.com/taxpon/openpyscad.

Cheers :),

Takuro Wada  taxpon@gmail.com


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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 > - Intuitive operations > - Supporting both python2 and python3 > - Supporting modifiers as well > > 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") > # will generate "ssample.scad" file with OpenSCAD codes > > Repo: > https://github.com/taxpon/openpyscad. > > Cheers :), > > # Takuro Wada taxpon@gmail.com > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > >
WA
William Adams
Mon, Jan 9, 2017 1:36 PM

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

  • Intuitive operations
  • Supporting both python2 and python3
  • Supporting modifiers as well

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")

will generate "ssample.scad" file with OpenSCAD codes

Repo:
https://github.com/taxpon/openpyscad.

Cheers :),

Takuro Wada  taxpon@gmail.com


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 >> - Intuitive operations >> - Supporting both python2 and python3 >> - Supporting modifiers as well >> >> 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") >> # will generate "ssample.scad" file with OpenSCAD codes >> >> Repo: >> https://github.com/taxpon/openpyscad. >> >> Cheers :), >> >> # Takuro Wada taxpon@gmail.com >> >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> >> >> > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > >
TP
Torsten Paul
Mon, Jan 9, 2017 2:15 PM

...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.

...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.