Hosting OpenSCAD Files (was Re: Is it possible to write out a text file from OpenSCAD?)

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

Hosting OpenSCAD Files (was Re: Is it possible to write out a text file from OpenSCAD?)

William Adams-2
On Wed, May 30, 2018 at 2:07 AM, MichaelAtOz <[hidden email]> wrote:
William Adams-2 wrote
> One last question: What are the options for hosting an OpenSCAD file with
> customizer? Thingiverse? Anything else?
>
> What would be involved in setting that up on my own server?

I don't know of anyone other than Thingiverse doing so, and they use their
own Customizer, not the new one built-in.


Okay. Thanks. I did find OpenSCAD.net which seems to be able to load files from Dropbox or some such, but no customizer support --- anyone know if that's in the pipeline to be added?

William


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Hosting OpenSCAD Files (was Re: Is it possible to write out a text file from OpenSCAD?)

doug.moen
According to the OpenSCAD.net github repo, "This project is no longer actively maintained, and was written against an older version of OpenSCAD (v 2011.06) which has now been superseded."

On 30 May 2018 at 09:39, William Adams <[hidden email]> wrote:
On Wed, May 30, 2018 at 2:07 AM, MichaelAtOz <[hidden email]> wrote:
William Adams-2 wrote
> One last question: What are the options for hosting an OpenSCAD file with
> customizer? Thingiverse? Anything else?
>
> What would be involved in setting that up on my own server?

I don't know of anyone other than Thingiverse doing so, and they use their
own Customizer, not the new one built-in.


Okay. Thanks. I did find OpenSCAD.net which seems to be able to load files from Dropbox or some such, but no customizer support --- anyone know if that's in the pipeline to be added?

William


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Hosting OpenSCAD Files (was Re: Is it possible to write out a text file from OpenSCAD?)

William Adams-2
Darn. Thanks.

Here's a thought: has anyone looked into integrating OpenSCAD into Jupyter Notebooks?

William

On Wed, May 30, 2018 at 12:46 PM, doug moen <[hidden email]> wrote:
According to the OpenSCAD.net github repo, "This project is no longer actively maintained, and was written against an older version of OpenSCAD (v 2011.06) which has now been superseded."

On 30 May 2018 at 09:39, William Adams <[hidden email]> wrote:
On Wed, May 30, 2018 at 2:07 AM, MichaelAtOz <[hidden email]> wrote:
William Adams-2 wrote
> One last question: What are the options for hosting an OpenSCAD file with
> customizer? Thingiverse? Anything else?
>
> What would be involved in setting that up on my own server?

I don't know of anyone other than Thingiverse doing so, and they use their
own Customizer, not the new one built-in.


Okay. Thanks. I did find OpenSCAD.net which seems to be able to load files from Dropbox or some such, but no customizer support --- anyone know if that's in the pipeline to be added?

William


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Hosting OpenSCAD Files (was Re: Is it possible to write out a text file from OpenSCAD?)

William Adams-2
And it turns out folks have already discussed this:


and it's supposed to be straight-forward:

>You can find a list of already available kernels here: https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages. If OpenSCAD implement the protocol it should just work out of the box without us having to do anything. Thanks !

William


On Wed, May 30, 2018 at 1:01 PM, William Adams <[hidden email]> wrote:
Darn. Thanks.

Here's a thought: has anyone looked into integrating OpenSCAD into Jupyter Notebooks?

William

On Wed, May 30, 2018 at 12:46 PM, doug moen <[hidden email]> wrote:
According to the OpenSCAD.net github repo, "This project is no longer actively maintained, and was written against an older version of OpenSCAD (v 2011.06) which has now been superseded."

On 30 May 2018 at 09:39, William Adams <[hidden email]> wrote:
On Wed, May 30, 2018 at 2:07 AM, MichaelAtOz <[hidden email]> wrote:
William Adams-2 wrote
> One last question: What are the options for hosting an OpenSCAD file with
> customizer? Thingiverse? Anything else?
>
> What would be involved in setting that up on my own server?

I don't know of anyone other than Thingiverse doing so, and they use their
own Customizer, not the new one built-in.


Okay. Thanks. I did find OpenSCAD.net which seems to be able to load files from Dropbox or some such, but no customizer support --- anyone know if that's in the pipeline to be added?

William


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org




_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Hosting OpenSCAD Files (was Re: Is it possible to write out a text file from OpenSCAD?)

William Adams-2
And maybe OpenJSCAD.org will work?

On Wed, May 30, 2018 at 1:23 PM, William Adams <[hidden email]> wrote:
And it turns out folks have already discussed this:


and it's supposed to be straight-forward:

>You can find a list of already available kernels here: https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages. If OpenSCAD implement the protocol it should just work out of the box without us having to do anything. Thanks !

William


On Wed, May 30, 2018 at 1:01 PM, William Adams <[hidden email]> wrote:
Darn. Thanks.

Here's a thought: has anyone looked into integrating OpenSCAD into Jupyter Notebooks?

William

On Wed, May 30, 2018 at 12:46 PM, doug moen <[hidden email]> wrote:
According to the OpenSCAD.net github repo, "This project is no longer actively maintained, and was written against an older version of OpenSCAD (v 2011.06) which has now been superseded."

On 30 May 2018 at 09:39, William Adams <[hidden email]> wrote:
On Wed, May 30, 2018 at 2:07 AM, MichaelAtOz <[hidden email]> wrote:
William Adams-2 wrote
> One last question: What are the options for hosting an OpenSCAD file with
> customizer? Thingiverse? Anything else?
>
> What would be involved in setting that up on my own server?

I don't know of anyone other than Thingiverse doing so, and they use their
own Customizer, not the new one built-in.


Okay. Thanks. I did find OpenSCAD.net which seems to be able to load files from Dropbox or some such, but no customizer support --- anyone know if that's in the pipeline to be added?

William


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org





_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Hosting OpenSCAD Files (was Re: Is it possible to write out a text file from OpenSCAD?)

doug.moen
In reply to this post by William Adams-2
Implementing the protocol is not straight-forward.

Jupyter is a web application. The user interface runs in a web browser. The kernel runs in a separate process, and communicates with the front end using a JSON encoded network protocol.

This sounds kind of like reimplementing a lot of OpenSCAD from scratch. And yeah, OpenJSCAD might be a better starting point.

On 30 May 2018 at 13:23, William Adams <[hidden email]> wrote:
And it turns out folks have already discussed this:


and it's supposed to be straight-forward:

>You can find a list of already available kernels here: https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages. If OpenSCAD implement the protocol it should just work out of the box without us having to do anything. Thanks !

William


On Wed, May 30, 2018 at 1:01 PM, William Adams <[hidden email]> wrote:
Darn. Thanks.

Here's a thought: has anyone looked into integrating OpenSCAD into Jupyter Notebooks?

William

On Wed, May 30, 2018 at 12:46 PM, doug moen <[hidden email]> wrote:
According to the OpenSCAD.net github repo, "This project is no longer actively maintained, and was written against an older version of OpenSCAD (v 2011.06) which has now been superseded."

On 30 May 2018 at 09:39, William Adams <[hidden email]> wrote:
On Wed, May 30, 2018 at 2:07 AM, MichaelAtOz <[hidden email]> wrote:
William Adams-2 wrote
> One last question: What are the options for hosting an OpenSCAD file with
> customizer? Thingiverse? Anything else?
>
> What would be involved in setting that up on my own server?

I don't know of anyone other than Thingiverse doing so, and they use their
own Customizer, not the new one built-in.


Okay. Thanks. I did find OpenSCAD.net which seems to be able to load files from Dropbox or some such, but no customizer support --- anyone know if that's in the pipeline to be added?

William


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org




_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
tp3
Reply | Threaded
Open this post in threaded view
|

Re: Hosting OpenSCAD Files (was Re: Is it possible to write out a text file from OpenSCAD?)

tp3
On 05/30/2018 08:06 PM, doug moen wrote:
> This sounds kind of like reimplementing a lot of OpenSCAD
> from scratch.
 >
Why?

There's even a C++ kernel interface library on github:
https://github.com/QuantStack/xeus

ciao,
   Torsten.


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: Hosting OpenSCAD Files (was Re: Is it possible to write out a text file from OpenSCAD?)

doug.moen
To do this, you need to create a clean separation of the OpenSCAD GUI from the OpenSCAD kernel. Put the kernel in a separate library and formalize the API that connects the kernel and the GUI. Then create a new user interface that runs in a web browser and communicates with the kernel over Jupyter protocol, using Xeus on the kernel side. An intermediate step might be for the kernel to always render the model to a triangle mesh, then send the mesh to the client. But rendering can take a long time. To do fast previewing, you need an equivalent of OpenCSG that runs in a web browser.

That's my understanding of what it would mean to have an OpenSCAD kernel for Jupyter. Does this sound easy and straightforward? Or do you have a different idea?

On 30 May 2018 at 14:38, Torsten Paul <[hidden email]> wrote:
On 05/30/2018 08:06 PM, doug moen wrote:
This sounds kind of like reimplementing a lot of OpenSCAD
from scratch.
>
Why?

There's even a C++ kernel interface library on github:
https://github.com/QuantStack/xeus

ciao,
  Torsten.



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Hosting OpenSCAD Files (was Re: Is it possible to write out a text file from OpenSCAD?)

William Adams-2
My idea was just to have Jupyter Notebook launch OpenSCAD and run it on a separate file, then read in the JSON file with the presets --- I guess there's some security aspect which makes that more difficult than I was thinking?

Oh well, worst case is the user will have to manually run OpenSCAD, then import the files from that, then Jupyter Notebook can operate on those.

I need to finish the lualatex / metapost integration I've started on first though.

William


On Wed, May 30, 2018 at 3:17 PM, doug moen <[hidden email]> wrote:
To do this, you need to create a clean separation of the OpenSCAD GUI from the OpenSCAD kernel. Put the kernel in a separate library and formalize the API that connects the kernel and the GUI. Then create a new user interface that runs in a web browser and communicates with the kernel over Jupyter protocol, using Xeus on the kernel side. An intermediate step might be for the kernel to always render the model to a triangle mesh, then send the mesh to the client. But rendering can take a long time. To do fast previewing, you need an equivalent of OpenCSG that runs in a web browser.

That's my understanding of what it would mean to have an OpenSCAD kernel for Jupyter. Does this sound easy and straightforward? Or do you have a different idea?

On 30 May 2018 at 14:38, Torsten Paul <[hidden email]> wrote:
On 05/30/2018 08:06 PM, doug moen wrote:
This sounds kind of like reimplementing a lot of OpenSCAD
from scratch.
>
Why?

There's even a C++ kernel interface library on github:
https://github.com/QuantStack/xeus

ciao,
  Torsten.



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
tp3
Reply | Threaded
Open this post in threaded view
|

Re: Hosting OpenSCAD Files (was Re: Is it possible to write out a text file from OpenSCAD?)

tp3
In reply to this post by doug.moen
On 05/30/2018 09:17 PM, doug moen wrote:
> To do this, you need to create a clean separation of the
> OpenSCAD GUI from the OpenSCAD kernel. Put the kernel in
> a separate library and formalize the API that connects
> the kernel and the GUI.
 >
That might be the perfect solution, but I'm pretty sure
it's not needed to get a working solution. Otherwise
Thingiverse Customizer would not exist.

ciao,
   Torsten.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: Hosting OpenSCAD Files (was Re: Is it possible to write out a text file from OpenSCAD?)

doug.moen
Okay then. A simpler solution would be an OpenSCAD Jupyter kernel that accepts an OpenSCAD program as input, writes it to a *.scad file, runs the openscad program to create a *.stl file, sends the captured stdout/stderr + the STL back to the client over Jupyter protocol. The client displays the console output and the triangle mesh. This would lack fast preview capability, and you still need an interactive user interface for the client side, which lets you scale and rotate the 3D object in its viewport. Adding customizer support significantly complicates this.

On 30 May 2018 at 15:25, Torsten Paul <[hidden email]> wrote:
On 05/30/2018 09:17 PM, doug moen wrote:
To do this, you need to create a clean separation of the
OpenSCAD GUI from the OpenSCAD kernel. Put the kernel in
a separate library and formalize the API that connects
the kernel and the GUI.
>
That might be the perfect solution, but I'm pretty sure
it's not needed to get a working solution. Otherwise
Thingiverse Customizer would not exist.


ciao,
  Torsten.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org