Skip to content

PlaneGeometry

继承自BufferGeometry

一个用于生成平面几何体的类。

js
const geometry = new THREE.PlaneGeometry(
    width : Float,
    height : Float, 
    widthSegments : Integer,
    heightSegments : Integer
)

参数:

  • width — 平面沿着X轴的宽度。默认值是1。
  • height — 平面沿着Y轴的高度。默认值是1。
  • widthSegments — (可选)平面的宽度分段数,默认值是1。
  • heightSegments — (可选)平面的高度分段数,默认值是1。

MIT Licensed