53 lines
2.4 KiB
Markdown
53 lines
2.4 KiB
Markdown
# Online 3D Viewer
|
|
|
|
[](https://github.com/kovacsv/Online3DViewer/actions/workflows/build.yml)
|
|
[](https://badge.fury.io/js/online-3d-viewer)
|
|
[](https://deepscan.io/dashboard#view=project&tid=16586&pid=19893&bid=524595)
|
|
|
|
Online 3D Viewer (https://3dviewer.net) is a free and open source web solution to visualize and explore 3D models in your browser. This repository contains the source code of the website and the library behind it.
|
|
|
|
[Live website](https://3dviewer.net) - [Website documentation](https://3dviewer.net/info) - [Developer documentation](https://kovacsv.github.io/Online3DViewer) - [Discord server](https://discord.gg/C7x9u833yN)
|
|
|
|
## Example
|
|
|
|

|
|
|
|
[Check the live version!](https://3dviewer.net/#model=https://raw.githubusercontent.com/kovacsv/Online3DViewer/dev/test/testfiles/gltf/DamagedHelmet/glTF-Binary/DamagedHelmet.glb)
|
|
|
|
## Supported file formats
|
|
|
|
* **Import**: 3dm, 3ds, 3mf, amf, bim, brep, dae, fbx, fcstd, gltf, ifc, iges, step, stl, obj, off, ply, wrl.
|
|
* **Export**: 3dm, bim, gltf, obj, off, stl, ply.
|
|
|
|
## External Libraries
|
|
|
|
Online 3D Viewer uses these wonderful libraries: [three.js](https://github.com/mrdoob/three.js), [pickr](https://github.com/Simonwep/pickr), [fflate](https://github.com/101arrowz/fflate), [draco](https://github.com/google/draco), [rhino3dm](https://github.com/mcneel/rhino3dm), [web-ifc](https://github.com/tomvandig/web-ifc), [occt-import-js](https://github.com/kovacsv/occt-import-js).
|
|
## STEP Tree Deletion Demo
|
|
|
|
This demo adds a local-only STEP editing flow without changing the existing download and export features.
|
|
|
|
### Start the website
|
|
|
|
```bash
|
|
npm install
|
|
npm run build_website_dev
|
|
npx http-server .
|
|
```
|
|
|
|
### Start the local STEP save service
|
|
|
|
```bash
|
|
pip install -r tools/step_service/requirements.txt
|
|
python tools/step_service/server.py
|
|
```
|
|
|
|
The service listens on `http://127.0.0.1:17890`.
|
|
|
|
### Demo flow
|
|
|
|
1. Open a `.stp` or `.step` file.
|
|
2. Select an assembly node or leaf part in the tree.
|
|
3. Click `Delete Selected`.
|
|
4. Click `Save STEP`.
|
|
5. Reopen the downloaded file to verify the deleted subtree is gone.
|