BufferGeometry

圆形缓冲几何体(CircleBufferGeometry)

这是CircleGeometry中的BufferGeometry接口。

代码示例

const geometry = new v3d.CircleBufferGeometry(5, 32); const material = new v3d.MeshBasicMaterial({ color: 0xffff00 }); const circle = new v3d.Mesh(geometry, material); scene.add(circle);

构造函数

CircleBufferGeometry(radius : Float, segments : Integer, thetaStart : Float, thetaLength : Float)

radius — 圆形的半径,默认值为1
segments — 分段(三角面)的数量,最小值为3,默认值为8。
thetaStart — 第一个分段的起始角度,默认为0。(three o'clock position)
thetaLength — 圆形扇区的中心角,通常被称为“θ”(西塔)。默认值是2*Pi,这使其成为一个完整的圆。

属性

共有属性请参见其基类BufferGeometry

.parameters : Object

一个包含着构造函数中每个参数的对象。在对象实例化之后,对该属性的任何修改都不会改变这个几何体。

方法(Methods)

共有方法请参见其基类BufferGeometry

源代码

src/geometries/CircleBufferGeometry.js