A example tutorial to export from FreeCAD assembly to a web page
This tutorial explains how to export your model and/or assembly from FreeCAD (or any CAD program generating a STEP file) to a useful web page. This only use free software and does not depend on numerous dependencies.
Currently, the steps listed below require an external (free) software (not open sourced) but since FreeCAD is based on the same underlying library (Open CASCADE), this requirement can be probably removed in the future.
Please go here for a demo You'll find more information on this post too
eye
iconCurrently, it's not a single document file (but it can be, with some work) so you need to serve the output folder/archive via a webserver.
Check the singleFile branch for a version of the code with a single file (usable for distribution without a webserver)
So, here is how you should do to go from FreeCAD document to this:
Assembly.STEP
)Assembly.gltf
)gh-pages
branch of this repository in a folder export
GTLF
file (and if generated, the BIN
file) in the folder export/
to Assembly.{gltf,bin}
export
to your webserver's document root and voilà, it's up!FreeCAD's repository now has support for exporting GLTF file directly so there is no more need for CAD Assistant, just select "GLTF" in the export format. Hooray!