GLTFExporter, which is a part of Three.js. You do not need a different package.
Export a session
session.root holds the full compiled building. Give it to the exporter and ask for binary output.
Download the file
Export other objects
The exporter accepts any Three.js object. To export one storey, pass its group fromsession.currentBuild.storeyGroups. To export elements that you made with classes such as Wall or Slab, add them to a THREE.Group and pass that group.
Notes
- Units are metres and the Y axis points up. These are also the glTF conventions, so no conversion is necessary.
- The file contains geometry, colours and object names. It does not contain the building document. Save a project file to keep the model editable.
- Call the export after the last edit. The exporter reads the model as it is at that moment.
- A deployed site needs a valid hostname key, including a non-commercial demo. See Licensing.