<div dir="ltr">Here's the matrix of relevant code:<div><br></div><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/convertJsonToStl.js">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/convertJsonToStl.js</a> </div><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/convertPlyToJson.js">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/convertPlyToJson.js</a><br></div><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/convertStlToJson.js">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/convertStlToJson.js</a></div><div><br></div><div>Note that these run in browser, so no need for a docker image, jupyter, or complex setups.  </div><div><br></div><div>John</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 18, 2020 at 6:11 PM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="auto">Note that X3DJSONLD has a PLY-> X3D converter and would appreciate contributions of an X3D to PLY converter.  Also advancement of the X3D -> STL converter would also be appreciated, in particular, the converter could use tessellation of faces plus additional X3D geometries.</div></div><div dir="auto"><br></div><div dir="auto">I have a web page @ <a href="http://coderextreme.net/X3DJSONLD" target="_blank">coderextreme.net/X3DJSONLD</a> which shows off capabilities.</div><div dir="auto"><br></div><div dir="auto">It’s not python.</div><div dir="auto"><br></div><div dir="auto">John</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 17, 2020 at 7:16 PM Andreas Plesch <<a href="mailto:andreasplesch@gmail.com" target="_blank">andreasplesch@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Did somebody put together an x3d converter based on pythonocc ?<br>
<br>
Here is an example:<br>
<br>
<a href="https://senties-martinelli.com/software/cad-viewer" rel="noreferrer" target="_blank">https://senties-martinelli.com/software/cad-viewer</a><br>
<br>
It could convert  step, stp, igs, iges, obj and stl formats. Format<br>
import and export is only a small subset of pythonocc<br>
(<a href="https://github.com/tpaviot/pythonocc-core" rel="noreferrer" target="_blank">https://github.com/tpaviot/pythonocc-core</a>) but I think just making<br>
this functionality easy to use with a dedicated converter could be<br>
really valuable.<br>
<br>
In the end, I think a  web service just for conversion would be most useful.<br>
<br>
I played with the Jupyter notebook and could generate with only a few lines x3d.<br>
<br>
And there are ways to generate a standalone webapp from a notebook:<br>
<a href="https://discourse.jupyter.org/t/how-to-transform-a-jupyter-notebook-into-a-webapp/758/6" rel="noreferrer" target="_blank">https://discourse.jupyter.org/t/how-to-transform-a-jupyter-notebook-into-a-webapp/758/6</a><br>
<br>
That could be quick way to offer a web service.<br>
<br>
Have there been attempts of this kind ? Would there be interest in a<br>
open source github hosted project ?<br>
<br>
-Andreas<br>
<br>
-- <br>
Andreas Plesch<br>
Waltham, MA 02453<br>
<br>
_______________________________________________<br>
x3d-public mailing list<br>
<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
</blockquote></div></div>
</blockquote></div>