Function createCylinderVertices

  • Creates cylinder vertices. The cylinder will be created around the origin along the y-axis.

    Parameters

    • params: {
          bottomCap?: boolean;
          height?: number;
          radialSubdivisions?: number;
          radius?: number;
          topCap?: boolean;
          verticalSubdivisions?: number;
      } = {}
      • OptionalbottomCap?: boolean

        Create bottom cap. Default = true.

      • Optionalheight?: number

        Height of cylinder. Default = 1

      • OptionalradialSubdivisions?: number

        The number of subdivisions around the cylinder. Default = 24

      • Optionalradius?: number

        Radius of cylinder. Default = 1

      • OptionaltopCap?: boolean

        Create top cap. Default = true.

      • OptionalverticalSubdivisions?: number

        The number of subdivisions down the cylinder. Default = 1

    Returns Arrays

    The created vertices.