<div dir="auto">It would be clever to hook in a GitHub raw file into X3DJSONLD as a first step.</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 6, 2021 at 1:09 PM Don Brutzman <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Thanks John and Cecile.  The pages say that Three.js is used to power these presentations.<br>
<br>
Gitlab also has built-in STL rendering for checked-in models.  A lot of these things are around.<br>
<br>
* <a href="https://github.com/topics/stl-viewer" rel="noreferrer" target="_blank">https://github.com/topics/stl-viewer</a><br>
<br>
* <a href="https://www.viewstl.com" rel="noreferrer" target="_blank">https://www.viewstl.com</a><br>
<br>
It would be great to adapt X_ITE and/or X3DOM in the same manner for X3D files.<br>
<br>
Found this interesting capability for diffs (differences) on the github stl docs page:<br>
<br>
==========================================================================<br>
* <a href="https://docs.github.com/en/github/managing-files-in-a-repository/working-with-non-code-files/3d-file-viewer#diffs" rel="noreferrer" target="_blank">https://docs.github.com/en/github/managing-files-in-a-repository/working-with-non-code-files/3d-file-viewer#diffs</a><br>
<br>
* <a href="https://docs.github.com/assets/images/help/repository/stl_wireframe.png" rel="noreferrer" target="_blank">https://docs.github.com/assets/images/help/repository/stl_wireframe.png</a><br>
<br>
Diffs<br>
When looking at a commit or set of changes which includes an STL file, you'll be able to see a before and after diff of the file.<br>
<br>
By default, you'll get a view where everything unchanged is in wireframe. Additions are colored in green, and removed parts are colored in red.<br>
<br>
You can also select the Revision Slider option, which lets you use a slider at the top of the file to transition between the current and previous revisions.<br>
==========================================================================<br>
<br>
Diffing is very important for change management, quality assurance (QA), Continuous Integration Continuous Development (CI/CD), DevSecOps and Digital Twin application domains.<br>
<br>
Continuing below:<br>
<br>
On 6/5/2021 12:01 AM, Cecile Muller wrote:<br>
> <br>
> well it was added 8 years ago:<br>
> <a href="https://github.blog/2013-04-09-stl-file-viewing/" rel="noreferrer" target="_blank">https://github.blog/2013-04-09-stl-file-viewing/</a><br>
> but I agree it's convenient :)<br>
> <br>
> See you,<br>
> Cecile<br>
<br>
<br>
On 6/3/2021 2:01 PM, John Carlson wrote:<br>
> Docs:<br>
> <br>
> <a href="https://docs.github.com/en/github/managing-files-in-a-repository/working-with-non-code-files/3d-file-viewer" rel="noreferrer" target="_blank">https://docs.github.com/en/github/managing-files-in-a-repository/working-with-non-code-files/3d-file-viewer</a><br>
> <br>
> On 6/3/21 2:45 PM, John Carlson wrote:<br>
>> <a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/stl/UavBeehive.stl" rel="noreferrer" target="_blank">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/stl/UavBeehive.stl</a><br>
<br>
student original-design model created using blender follows.  As ever, note how STL is unable to include metadata.<br>
<br>
* <a href="https://x3dgraphics.com/examples/X3dForAdvancedModeling/AdditiveManufacturing/UavBeehiveIndex.html" rel="noreferrer" target="_blank">https://x3dgraphics.com/examples/X3dForAdvancedModeling/AdditiveManufacturing/UavBeehiveIndex.html</a><br>
<br>
* <a href="https://x3dgraphics.com/examples/X3dForAdvancedModeling/AdditiveManufacturing/UavBeehiveBlenderScreenshot.png" rel="noreferrer" target="_blank">https://x3dgraphics.com/examples/X3dForAdvancedModeling/AdditiveManufacturing/UavBeehiveBlenderScreenshot.png</a><br>
<br>
* <a href="https://x3dgraphics.com/examples/X3dForAdvancedModeling/AdditiveManufacturing/UavBeehive.blend" rel="noreferrer" target="_blank">https://x3dgraphics.com/examples/X3dForAdvancedModeling/AdditiveManufacturing/UavBeehive.blend</a><br>
<br>
* <a href="https://x3dgraphics.com/examples/X3dForAdvancedModeling/AdditiveManufacturing/UavBeehive.stl" rel="noreferrer" target="_blank">https://x3dgraphics.com/examples/X3dForAdvancedModeling/AdditiveManufacturing/UavBeehive.stl</a><br>
<br>
> It seems like the "big guys" are finally paying attention to 3D models on the web!<br>
> <br>
> John<br>
<br>
I hope us "little people" can<br>
<br>
a. document good geometry design correspondences between STL and X3D IndexedFaceSet,<br>
b. write X3dToStl.xslt conversion stylesheet,<br>
c. add STL export/import as direct capability in X3D-Edit,<br>
d. document workflow between X3D and STL, then<br>
e. do the same for PLY format (conceptually quite similar),<br>
f. allow STL loading as Shape geometry in X3D4 specification,<br>
g. tackle geometric diffing for X3D models (we already have text-diff and viewpoint capture-as-image-image-diff capabilities).<br>
<br>
all the best, Don<br>
-- <br>
Don Brutzman  Naval Postgraduate School, Code USW/Br       <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a><br>
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149<br>
X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzman</a><br>
</blockquote></div></div>