【文件属性】:
文件名称:threejs-csg:用于Three.js,ES6 + BufferGeometry的构造实体几何
文件大小:1.19MB
文件格式:ZIP
更新时间:2021-04-05 15:59:59
JavaScript
threejs-csg(进行中)
用于Three.js,ES6 + BufferGeometry的构造实体几何
发展
运行npm install然后npm start
要查看演示,请将浏览器定向到
用法
const box = new Mesh(new BoxBufferGeometry(0.2, 0.2, 1), material);
// console.log('box: ', new BoxBufferGeometry(0.2, 0.2, 1));
box.position.set(0.1, 0.1, 0);
const sphere = new Mesh(new SphereBufferGeometry(0.1), material);
sphere.position.set(0, 0, -0.3);
const sphereB = sphere.clone();
spher
【文件预览】:
threejs-csg-master
----.gitignore(2KB)
----package.json(2KB)
----package-lock.json(71KB)
----src()
--------components()
--------CSG.js(9KB)
--------index.js(32B)
----build()
--------csg.module.js(4.52MB)
----LICENSE(1KB)
----rollup.config.js(916B)
----README.md(1KB)
----demo()
--------assets()
--------tests()