discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

complex fillet

DW
Dan White
Mon, Dec 18, 2023 3:20 AM

So then how do you mix python and OpenSCAD ?
"Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."

Bill Waterson (Calvin & Hobbes)

On Dec 17, 2023, at 9:17 PM, Sanjeev Prabhakar <sprabhakar2006@gmail.com> wrote:

I am using Jupyter notebook to write python codes for openscad.I tried pythonscad but somehow it did not work.

On Mon, 18 Dec 2023 at 03:46, Dan White via Discuss <discuss@lists.openscad.org> wrote:

Thanks for clarifyingI will look at pythonscad

"Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."

Bill Waterson (Calvin & Hobbes)

On Dec 17, 2023, at 3:59 PM, William F. Adams via Discuss <discuss@lists.openscad.org> wrote:



On Sunday, December 17, 2023 at 03:41:14 PM EST, Dan White via Discuss <discuss@lists.openscad.org> wrote:

>I think I am seeing in these examples is a way to generate points using python source code

>and then have the python output to an OpenSCAD source file for rendering.

>

>Is this accurate ?

No.

The version of OpenSCAD being used here has Python enabled w/in it, so can do rendering from Python files, or working from Python commands/data structures:

http://pythonscad.org/

There is work on-going to integrate it into OpenSCAD directly:

https://github.com/openscad/openscad/issues/4880

and for folks who aren't good at Python, it is workable to just use it as a project warrants --- for example in the work I have been doing:

https://github.com/WillAdams/gcodepreview

I <use ...> one Python file, wrap it in an OpenSCAD file which is also brough in via <use ....>, then reference that OpenSCAD file using <include ...> and that then allows me to use OpenSCAD quite naturally, while taking advantage of (for example) persistent Python variables (so that the position of a virtual CNC machine can be tracked), and the ability of Python to write out files (so that DXF files which do not describe closed regions may be output, or G-code can be written out directly, forgoing the need for a traditional CAM program).

William

_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

SP
Sanjeev Prabhakar
Mon, Dec 18, 2023 5:22 AM

There are various videos I have posted on my github page you can check them.

https://github.com/sprabhakar2006/openSCAD/tree/main/videos

On Mon, 18 Dec, 2023, 8:51 am Dan White via Discuss, <
discuss@lists.openscad.org> wrote:

So then how do you mix python and OpenSCAD  ?

"Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us."

Bill Waterson (Calvin & Hobbes)

On Dec 17, 2023, at 9:17 PM, Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:


I am using Jupyter notebook to write python codes for openscad.
I tried pythonscad but somehow it did not work.

On Mon, 18 Dec 2023 at 03:46, Dan White via Discuss <
discuss@lists.openscad.org> wrote:

Thanks for clarifying
I will look at pythonscad

"Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us."

Bill Waterson (Calvin & Hobbes)

On Dec 17, 2023, at 3:59 PM, William F. Adams via Discuss <
discuss@lists.openscad.org> wrote:


On Sunday, December 17, 2023 at 03:41:14 PM EST, Dan White via Discuss <
discuss@lists.openscad.org> wrote:

I think I am seeing in these examples is a way to generate points using

python source code

and then have the python output to an OpenSCAD source file for rendering.

Is this accurate ?

No.

The version of OpenSCAD being used here has Python enabled w/in it, so
can do rendering from Python files, or working from Python commands/data
structures:

http://pythonscad.org/

There is work on-going to integrate it into OpenSCAD directly:

https://github.com/openscad/openscad/issues/4880

and for folks who aren't good at Python, it is workable to just use it as
a project warrants --- for example in the work I have been doing:

https://github.com/WillAdams/gcodepreview

I <use ...> one Python file, wrap it in an OpenSCAD file which is also
brough in via <use ....>, then reference that OpenSCAD file using <include
...> and that then allows me to use OpenSCAD quite naturally, while taking
advantage of (for example) persistent Python variables (so that the
position of a virtual CNC machine can be tracked), and the ability of
Python to write out files (so that DXF files which do not describe closed
regions may be output, or G-code can be written out directly, forgoing the
need for a traditional CAM program).

William


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

There are various videos I have posted on my github page you can check them. https://github.com/sprabhakar2006/openSCAD/tree/main/videos On Mon, 18 Dec, 2023, 8:51 am Dan White via Discuss, < discuss@lists.openscad.org> wrote: > So then how do you mix python and OpenSCAD ? > > "Sometimes I think the surest sign that intelligent life exists elsewhere > in the universe is that none of it has tried to contact us." > > Bill Waterson (Calvin & Hobbes) > > On Dec 17, 2023, at 9:17 PM, Sanjeev Prabhakar <sprabhakar2006@gmail.com> > wrote: > >  > I am using Jupyter notebook to write python codes for openscad. > I tried pythonscad but somehow it did not work. > > On Mon, 18 Dec 2023 at 03:46, Dan White via Discuss < > discuss@lists.openscad.org> wrote: > >> Thanks for clarifying >> I will look at pythonscad >> >> "Sometimes I think the surest sign that intelligent life exists elsewhere >> in the universe is that none of it has tried to contact us." >> >> Bill Waterson (Calvin & Hobbes) >> >> On Dec 17, 2023, at 3:59 PM, William F. Adams via Discuss < >> discuss@lists.openscad.org> wrote: >> >>  >> On Sunday, December 17, 2023 at 03:41:14 PM EST, Dan White via Discuss < >> discuss@lists.openscad.org> wrote: >> >> >I think I am seeing in these examples is a way to generate points using >> python source code >> >and then have the python output to an OpenSCAD source file for rendering. >> > >> >Is this accurate ? >> >> No. >> >> The version of OpenSCAD being used here has Python enabled w/in it, so >> can do rendering from Python files, or working from Python commands/data >> structures: >> >> http://pythonscad.org/ >> >> There is work on-going to integrate it into OpenSCAD directly: >> >> https://github.com/openscad/openscad/issues/4880 >> >> and for folks who aren't good at Python, it is workable to just use it as >> a project warrants --- for example in the work I have been doing: >> >> https://github.com/WillAdams/gcodepreview >> >> I <use ...> one Python file, wrap it in an OpenSCAD file which is also >> brough in via <use ....>, then reference that OpenSCAD file using <include >> ...> and that then allows me to use OpenSCAD quite naturally, while taking >> advantage of (for example) persistent Python variables (so that the >> position of a virtual CNC machine can be tracked), and the ability of >> Python to write out files (so that DXF files which do not describe closed >> regions may be output, or G-code can be written out directly, forgoing the >> need for a traditional CAM program). >> >> William >> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
SP
Sanjeev Prabhakar
Fri, Dec 22, 2023 1:28 AM

I have posted a video as to how to model this:

May be of some interest to some

https://github.com/sprabhakar2006/openSCAD/blob/main/videos/2_ring_fillet.3gp

On Sun, 17 Dec 2023, 16:47 Sanjeev Prabhakar, sprabhakar2006@gmail.com
wrote:

difficult to make in openscad as per me.

[image: Screenshot 2023-12-17 at 4.25.16 PM.png]

file can be downloaded from here:
https://github.com/sprabhakar2006/openSCAD/blob/main/complex_fillet.scad

I have posted a video as to how to model this: May be of some interest to some https://github.com/sprabhakar2006/openSCAD/blob/main/videos/2_ring_fillet.3gp On Sun, 17 Dec 2023, 16:47 Sanjeev Prabhakar, <sprabhakar2006@gmail.com> wrote: > difficult to make in openscad as per me. > > [image: Screenshot 2023-12-17 at 4.25.16 PM.png] > > file can be downloaded from here: > https://github.com/sprabhakar2006/openSCAD/blob/main/complex_fillet.scad >