Function createSphereVertices

  • Creates sphere vertices.

    The created sphere has position, normal, and texcoord data

    Parameters

    • params: {
          endLatitudeInRadians: undefined | number;
          endLongitudeInRadians: undefined | number;
          radius: undefined | number;
          startLatitudeInRadians: undefined | number;
          startLongitudeInRadians: undefined | number;
          subdivisionsAxis: undefined | number;
          subdivisionsHeight: undefined | number;
      } = {}
      • endLatitudeInRadians: undefined | number

        Where to end the bottom of the sphere. Default = π

      • endLongitudeInRadians: undefined | number

        where to end wrapping the sphere. Default = 2π

      • radius: undefined | number

        radius of the sphere. Default = 1

      • startLatitudeInRadians: undefined | number

        where to start the top of the sphere. Default = 0

      • startLongitudeInRadians: undefined | number

        where to start wrapping the sphere. Default = 0

      • subdivisionsAxis: undefined | number

        number of steps around the sphere. Default = 24

      • subdivisionsHeight: undefined | number

        number of vertically on the sphere. Default = 12

    Returns Arrays

    The created sphere vertices.

Generated using TypeDoc