CylinderBufferGeometry

圆锥缓冲几何体(ConeBufferGeometry)

这是ConeGeometry中的BufferGeometry接口。

代码示例

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

构造函数

ConeBufferGeometry(radius : Float, height : Float, radialSegments : Integer, heightSegments : Integer, openEnded : Boolean, thetaStart : Float, thetaLength : Float)

radius — 圆锥底部的半径,默认值为1。
height — 圆锥的高度,默认值为1。
radialSegments — 圆锥侧面周围的分段数,默认为8。
heightSegments — 圆锥侧面沿着其高度的分段数,默认值为1。
openEnded — 一个Boolean值,指明该圆锥的底面是开放的还是封顶的。默认值为false,即其底面默认是封顶的。
thetaStart — 第一个分段的起始角度,默认为0。(three o'clock position)
thetaLength — 圆锥底面圆扇区的中心角,通常被称为“θ”(西塔)。默认值是2*Pi,这使其成为一个完整的圆锥。

属性

共有属性请参见其基类CylinderBufferGeometry

.parameters : Object

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

方法(Methods)

共有方法请参见其基类CylinderBufferGeometry

源代码

src/geometries/ConeBufferGeometry.js