How do I construct a hollow cylinder in Three.js

后端 未结 4 1686
伪装坚强ぢ
伪装坚强ぢ 2021-01-05 17:27

I\'m having difficulties constructing a hollow cylinder in Three.js.

Should I go and construct it using CSG or by stitching the vertices together?

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-05 17:58

    Use SVGloader to load a circle of desired radius (as an SVG). Set the geometry to ExtrudeBufferGeometry and give it your desired height as depth in the extrude settings object.

提交回复
热议问题