javascript - 在 THREE 的 npm 版本中使用 ConvexGeometry

标签 javascript npm three.js

如何在 THREE 的 npm 版本中使用 ConvexGeometry
似乎它已添加到r85中:https://github.com/mrdoob/three.js/releases

但它看起来只是示例文件夹中的代码。 有没有办法将它与 npm THREE 一起使用?

感谢您的帮助!

最佳答案

像这样:

import 'three/examples/js/QuickHull';
import 'three/examples/js/geometries/ConvexGeometry';
import 'three/examples/js/controls/OrbitControls';

关于javascript - 在 THREE 的 npm 版本中使用 ConvexGeometry,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46362627/

相关文章:

javascript - 文本节点不能作为 <table> [ReactJS] 的子节点出现

css - 如何在react-table中添加淡入淡出效果?

node.js - 找不到模块 '../dialog'(Electron fatal error )

javascript - GUI 上 3 个顶点的方向

javascript - 具有高级优化和外部的闭包编译器

javascript - Apache Cordova : CSP Error

javascript - 如何在加载后从缓存中读取 iframe 的 *original* 源

vue.js - 视觉 : Using material-design-icons offline/size

three.js - 导入 THREEJS 的某些 fbx 模型的枢轴点错误

javascript - Three.js/WebGL/GLSL - "#include <common>"是什么意思?