Function createTorusVertices

  • Creates vertices for a torus

    Parameters

    • params: {
          bodySubdivisions: undefined | number;
          endAngle: undefined | number;
          radialSubdivisions: undefined | number;
          radius: undefined | number;
          startAngle: undefined | number;
          thickness: undefined | number;
      } = {}
      • bodySubdivisions: undefined | number

        The number of subdivisions around the body torus. Default = 12

      • endAngle: undefined | number

        end angle in radians. Default = Math.PI * 2.

      • radialSubdivisions: undefined | number

        The number of subdivisions around the torus. Default = 24

      • radius: undefined | number

        radius of center of torus circle. Default = 1

      • startAngle: undefined | number

        start angle in radians. Default = 0.

      • thickness: undefined | number

        radius of torus ring. Default = 0.24

    Returns Arrays

    The created vertices.

Generated using TypeDoc