Function createCubeVertices

  • Creates the vertices and indices for a cube.

    The cube is created around the origin. (-size / 2, size / 2).

    Parameters

    • params: {
          size: undefined | number;
      } = {}
      • size: undefined | number

        width, height and depth of the cube. Default = 1

    Returns Arrays

    The created vertices.

Generated using TypeDoc