Skip to content

BoxGeometry

继承自BufferGeometry

BoxGeometry是立方缓冲几何体

1.构造函数

js
const geometry = new THREE.BoxGeometry(
    width : Float,
    height : Float,
    depth : Float,
    widthSegments : Integer,
    heightSegments : Integer,
    depthSegments : Integer
);

参数:

  • width — X 轴上面的宽度,默认值为 1。
  • height — Y 轴上面的高度,默认值为 1。
  • depth — Z 轴上面的深度,默认值为 1。
  • widthSegments — (可选)宽度的分段数,默认值是 1。
  • heightSegments — (可选)高度的分段数,默认值是 1。
  • depthSegments — (可选)深度的分段数,默认值是 1。

MIT Licensed