> You can load models from your computer. In this case the model won't be uploaded to any web server, the entire process happens in your browser.
Could I somehow embed this as a preview feature in an other application (which is completely under my control)?
Let's say I am working on a gallery application, but not for photos/image files, but for 3D files. Could I ember a browser/html page render and use this online 3D viewer there?
I something similar for climate data, but loading data from a different site was not possible due to CORS. How is CORS not a problem with this setup? @app4soft: Did you allow all origins? Isn’t this a security issue?
I have links to youtube videos with a big thumbnail. That's good enough. Similarly a static image that links to an interactive viewer is good enough. All that's needed is a way to have the viewer launch with the model loaded, ie pass it the address to the fcstd or step file.
There is actually an STL viewer already in github, and it even shows visual diffs, but I never get to use it because I consider STL to be an output format that I don't want in my source repos, only in release assets.
But the fcstd file is the source, so a direct viewer for that is awesome.
For kicad... it would require exporting to step and having the step be available somewhere, but it would be worth it for some projects.
I'm not sure about all open-source CAD apps, but FreeCAD files (.FCStd) and SolveSpace files (.SLVS) could be both part and assembly same time.
Even more, FCStd-file is more like a project container file, that may include parts, assemblies and other data (images, templates, etc.) imported into project.
It supports wide range of formats, including BREP, STEP, IGES, FreeCAD, Rhinoceros 3D and various common mesh formats.[3]
I, as user of FreeCAD, wrote short thread on its features & possible use as replacement for GrabCAD.[4]
[0] https://github.com/kovacsv/Online3DViewer
[1] https://github.com/kovacsv/Online3DViewerExamples
[2] https://github.com/kovacsv/occt-import-js
[3] https://3dviewer.net/info/index.html
[4] https://fosstodon.org/@app4soft/109925148654197144