[HN Gopher] Online 3D Viewer for FreeCAD files
       ___________________________________________________________________
        
       Online 3D Viewer for FreeCAD files
        
       Author : app4soft
       Score  : 82 points
       Date   : 2023-02-25 14:16 UTC (8 hours ago)
        
 (HTM) web link (3dviewer.net)
 (TXT) w3m dump (3dviewer.net)
        
       | app4soft wrote:
       | _Online 3D Viewer_ [0,1] is an open-source 3D models viewer for
       | web, based on Enscripten-port of OCCT (Open Cascade)[2].
       | 
       | 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
        
         | justinclift wrote:
         | Any idea if it supports any of FreeCAD's "Assembly*" modules?
        
           | app4soft wrote:
           | It seems like FreeCAD's "Assembly" (Assembly3?) support still
           | is WIP, but not yet works.[0]
           | 
           | BTW, FCStd-files with multiply bodies/parts already works.
           | Here is a viewer link[1] for FreeCAD's built-in
           | `ArchDetail.FCStd`[2] example model.
           | 
           | [0] https://github.com/kovacsv/Online3DViewer/issues/312
           | 
           | [1] https://3dviewer.net/#model=https://raw.githubusercontent
           | .co... (ATTENTION! Huge CPU/RAM load on start!)
           | 
           | [2]
           | https://github.com/FreeCAD/FreeCAD/tree/master/data/examples
        
             | app4soft wrote:
             | And here is a discussion of this Online 3D Viewer on
             | FreeCAD forum now:[0]
             | 
             | [0] https://forum.freecad.org/viewtopic.php?t=41926&p=66339
             | 9#p66...
        
       | djfobbz wrote:
       | Which open-source formats are equivalent of the Soliworks part (
       | _.SLDPRT) and assembly (_.SLDASM)?
        
         | app4soft wrote:
         | 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.
        
       | splittingTimes wrote:
       | > 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?
        
         | kovacsv wrote:
         | You can find help for embedding in the developer documentation:
         | 
         | https://kovacsv.github.io/Online3DViewer/index.html
        
       | phkahler wrote:
       | Loads fast. Does it not include all of OCCT?
        
         | kovacsv wrote:
         | It uses occt-import-js that compiles only a minimal set of code
         | from OCCT to open step, iges and brep files.
         | 
         | https://github.com/kovacsv/occt-import-js
        
         | app4soft wrote:
         | There are diagrams of bundle analyzer:[0]
         | 
         | BTW, May You finally unban me in _SolveSpace_ repo? Its a year
         | already.
         | 
         | [0] https://github.com/kovacsv/Online3DViewer/issues/357
        
       | spacebeer wrote:
       | Great work
        
       | Brian_K_White wrote:
       | I can't wait to get home to see if I can use this as a preview in
       | readme.md somehow.
       | 
       | For kicad projects too not just freecad.
        
         | app4soft wrote:
         | > _in readme.md somehow_
         | 
         | In GitHub repo its impossible to insert interactive <iframe>
         | into Markdown files (and wiki, comments in issues and
         | pulls).[0]
         | 
         | But for GitHub Pages site it might works (just use HTTPS).[1]
         | 
         | [0] https://debug.to/5532/how-to-embed-iframe-in-github
         | 
         | [1] https://stackoverflow.com/questions/48612913/simple-
         | iframe-i...
        
       | recycledman wrote:
       | Very nice, this project has potential, it would be nice if there
       | were someone already working on an online FreeCAD sort of
       | alternative too :)
        
       ___________________________________________________________________
       (page generated 2023-02-25 23:00 UTC)