在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