在es6使用require加載three包裏的內容:
const { STLExporter } = require(‘three/examples/jsm/exporters/STLExporter.js’);
saveAS使用 https://github.com/eligrey/FileSaver.js
在es6使用require加載three包裏的內容:
const { STLExporter } = require(‘three/examples/jsm/exporters/STLExporter.js’);
saveAS使用 https://github.com/eligrey/FileSaver.js