TorusGeometry
一个用于生成圆环几何体的类。
js
const geometry = new THREE.TorusGeometry(
radius : Float,
tube : Float,
radialSegments : Integer,
tubularSegments : Integer,
arc : Float
)参数:
- radius - 环面的半径,从环面的中心到管道横截面的中心。默认值是1。
- tube — 管道的半径,默认值为0.4。
- radialSegments — 管道横截面的分段数,默认值为12。
- tubularSegments — 管道的分段数,默认值为48。
- arc — 圆环的圆心角(单位是弧度),默认值为Math.PI * 2。
