Re: OpenSCAD Digest, Vol 57, Issue 29

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

Re: OpenSCAD Digest, Vol 57, Issue 29

laird

   1. Using the 3D-viewer as a component in another software
      (Ehlert, Wolfgang)
   2. Re: Using the 3D-viewer as a component in another software
      (Marius)

I have found that for pretty much any language (Python, PHP), it is easy to execute OpenSCAD  as a command line tool and passing all the parameters as parameters with – D. 

For example, see https://github.com/e-nable/Service-Station which calls OpenSCAD at https://github.com/e-nable/e-NABLE-Assembler from PHP. There are examples, wiki pages, etc.

Hope this helps.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD Digest, Vol 57, Issue 29

Ehlert, Wolfgang

Thanks for your answer, but this isn't the point. We directly generate a full scad file from our software, using an existing scad file as a template and filling it with parameters. Then we start it via command line to generate an off-file to display it with another software.

 

Imagine a wall with an opening. We generate the data inside our ERP system and display it. The user recognizes, that he has placed the opening at a wrong place. He has to close the viewer change the related parameter and reopens the viewer, regenerates the view (shifting and turning the element in the 3D viewer) to check his modification.

This isn't interactive at all because

he doesn't see just the opening moved to the correct place by changing the parameter but

has to close the viewer window, has to reopen the viewer, has to regenerate a similar view.

 

Now imagine we could use the openscad viewer only (without the code and the result window) and we could save the last viewport. We only would have to clear the viewer and show the model with the updated parameters.  No need to close any software, no regeneration of 3D orientation of element. Really interactive!

 

We could change from openscad e.g. to eyeshot from devdept.com to get rid of this problem but we would generate a much bigger problem for our clients. They would have to employ a programmer to generate or change our standard 3D elements, what currently can be done by any civil engineer of the company having basic programming knowledge.

 

Wolfgang

 

 

Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Laird Popkin
Gesendet: Samstag, 16. August 2014 17:04
An: [hidden email]
Betreff: Re: [OpenSCAD] OpenSCAD Digest, Vol 57, Issue 29

 

 

   1. Using the 3D-viewer as a component in another software
      (Ehlert, Wolfgang)
   2. Re: Using the 3D-viewer as a component in another software
      (Marius)

 

I have found that for pretty much any language (Python, PHP), it is easy to execute OpenSCAD  as a command line tool and passing all the parameters as parameters with – D. 

 

For example, see https://github.com/e-nable/Service-Station which calls OpenSCAD at https://github.com/e-nable/e-NABLE-Assembler from PHP. There are examples, wiki pages, etc.

 

Hope this helps.


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD Digest, Vol 57, Issue 29

Alan Cox
> Now imagine we could use the openscad viewer only (without the code and the result window) and we could save the last viewport. We only would have to clear the viewer and show the model with the updated parameters.  No need to close any software, no regeneration of 3D orientation of element. Really interactive!

That basically comes down to 'reload and redisplay when file changes' and
monitoring the file. OpenScad already supports most of that.

Alan
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566