Experimental integration of THREE.PointCloud into Autodesk Forge Viewer.
- install dependencies:
npm install
- run the server with
FORGE_CLIENT_ID
,FORGE_CLIENT_SECRET
, andMODEL_URN
env. variablesexport FORGE_CLIENT_ID=<your client id> export FORGE_CLIENT_SECRET=<your client secret> export MODEL_URN=<your model urn> node server.js
- alternatively, if you're using Visual Studio Code,
use the following .vscode/launch.json configuration:
{ "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Launch Server", "program": "${workspaceFolder}/server.js", "env": { "FORGE_CLIENT_ID": "<your client id>", "FORGE_CLIENT_SECRET": "<your client secret>", "MODEL_URN": "<your model urn>" } } ] }
- go to http://localhost:3000