Function createWallBufferGeometry

  • 给定坐标和高度,创建一面墙的几何坐标

    Parameters

    • opts: {
          axisUp?: "x" | "y" | "z";
          height: number;
          isClose?: boolean;
          isUseCenter?: boolean;
          points: [number, number][];
      }
      • Optional axisUp?: "x" | "y" | "z"

        坐标轴朝上的方向

      • height: number

        高度

      • Optional isClose?: boolean

        是否闭合

      • Optional isUseCenter?: boolean

        是否用中心点坐标, 默认是

      • points: [number, number][]

        坐标数组

    Returns {
        center: [number, number, number];
        geometry: BufferGeometry<NormalBufferAttributes>;
    }

    • center: [number, number, number]
    • geometry: BufferGeometry<NormalBufferAttributes>