Skip to content

RingGeometry

继承自BufferGeometry

一个用于生成二维圆环几何体的类。

js
const geometry = new THREE.RingGeometry(
    innerRadius : Float,
    outerRadius : Float,
    thetaSegments : Integer,
    phiSegments : Integer,
    thetaStart : Float,
    thetaLength : Float
)

参数:

  • innerRadius — 内部半径,默认值为0.5。
  • outerRadius — 外部半径,默认值为1。
  • thetaSegments — 圆环的分段数。这个值越大,圆环就越圆。最小值为3,默认值为32。
  • phiSegments — 最小值为1,默认值为8。
  • thetaStart — 起始角度,默认值为0。
  • thetaLength — 圆心角,默认值为Math.PI * 2。

MIT Licensed