Re: OpenSCAD Digest, Vol 15, Issue 6

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD Digest, Vol 15, Issue 6

Evan T. Jones
Wow, Ian.  That's a pretty ambitious undertaking; I'm impressed.  In the long term, I would LOVE to see just such a native-python integration with the OpenSCAD engine.  In the meantime, I've just doctored up some SCAD-generating code to cover the entire language.  It doesn't give any of the speed benefits that your low-level approach will yield, but is (I believe) complete and usable immediately.   It looks like PySCAD code will build its tree a little differently than I have.  I'd love to see some sample Python code (off-list) that shows how you guys use PySCAD.  It would be great if I could make code written using my module compatible with PySCAD. 

The code is available on github (https://github.com/etjones/MCAD/tree/master/PyOpenScad).  I've just forked MCAD for the moment since that's where most OpenSCAD functionality lives right now.  

Evan




Hey Evan,

A friend and I have been working on a different approach to the same end in
a project called pySCAD. We have alpha-level code up on github here:
https://github.com/kevinmehall/pyscad.

The basic idea is that we're using ctypes to directly modify the abstract
syntax tree of OpenSCAD, allowing full python integration at a fairly
low-level.

The Readme contains a fairly in-depth discussion of our approach, progress,
and plans.

Is your code publicly available?

Best,
--
Ian


Reply | Threaded
Open this post in threaded view
|

Re: PyOpenScad

Elmo Mäntynen
I thought I had included the original pyopenscad.py in MCAD, but maybe
the license (GPL, MCAD is LGPL) got in the way. Have you gotten Phillip
to relicense the code in LGPL? You've dropped the license/copyright
disclaimer from pyopenscad.py, that's bad! When that is hopefully fixed,
I'd like to integrate all this into MCAD. I have IDEAS ;)


Elmo

On 02/14/2011 02:41 AM, Evan T. Jones wrote:

> Wow, Ian. That's a pretty ambitious undertaking; I'm impressed. In the
> long term, I would LOVE to see just such a native-python integration
> with the OpenSCAD engine. In the meantime, I've just doctored up some
> SCAD-generating code to cover the entire language. It doesn't give any
> of the speed benefits that your low-level approach will yield, but is (I
> believe) complete and usable immediately. It looks like PySCAD code will
> build its tree a little differently than I have. I'd love to see some
> sample Python code (off-list) that shows how you guys use PySCAD. It
> would be great if I could make code written using my module compatible
> with PySCAD.
>
> The code is available on github
> (https://github.com/etjones/MCAD/tree/master/PyOpenScad). I've just
> forked MCAD for the moment since that's where most OpenSCAD
> functionality lives right now.
>
> Evan
>
>
>
>
>> Hey Evan,
>>
>> A friend and I have been working on a different approach to the same
>> end in
>> a project called pySCAD. We have alpha-level code up on github here:
>> https://github.com/kevinmehall/pyscad.
>>
>> The basic idea is that we're using ctypes to directly modify the abstract
>> syntax tree of OpenSCAD, allowing full python integration at a fairly
>> low-level.
>>
>> The Readme contains a fairly in-depth discussion of our approach,
>> progress,
>> and plans.
>>
>> Is your code publicly available?
>>
>> Best,
>> --
>> Ian
>
>
>
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad