Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 three.js 中创建具有矩形底座的锥形几何体。我怎么能那样做?
我在这里提供图像,以便我能理解我在说什么。
具有方形底的圆锥是具有 4 个边且底半径之一等于 0 的圆柱的特定情况。
您可以使用以下方法创建通用圆柱体:
THREE.CylinderGeometry(radiusTop, radiusBottom, height, radiusSegments, heightSegments, openEnded)
一个具体的例子是:
THREE.CylinderGeometry(0, 30, 80, 4, 1, true);