Skip to content

LatheGeometry

继承自BufferGeometry

车削缓冲几何体,创建具有轴对称性的网格,比如花瓶。车削绕着 Y 轴来进行旋转。

js
const geometry = new THREE.LatheGeometry(
    points : Array,
    segments : Integer,
    phiStart : Float,
    phiLength : Float
)

参数:

  • points — 一个 Vector2 对象数组。每个点的 X 坐标必须大于 0。 Default is an array with (0,-0.5), (0.5,0) and (0,0.5) which creates a simple diamond shape.
  • segments — 要生成的车削几何体圆周分段的数量,默认值是 12。
  • phiStart — 以弧度表示的起始角度,默认值为 0。
  • phiLength — 车削部分的弧度(0-2PI)范围,2PI 将是一个完全闭合的、完整的车削几何体,小于 2PI 是部分的车削。默认值是 2PI。

MIT Licensed