# SCNCylinder

``public extension SCNCylinder``
• ``` init(diameter:height:) ```

SwifterSwift: Creates a cylinder geometry with the specified diameter and height.

#### Declaration

Swift

``convenience init(diameter: CGFloat, height: CGFloat)``

#### Parameters

 ``` radius ``` The radius of the cylinder’s circular cross section in the x- and z-axis dimensions of its local coordinate space. ``` height ``` The height of the cylinder along the y-axis of its local coordinate space. ``` material ``` The material of the geometry.
• ``` init(radius:height:material:) ```

SwifterSwift: Creates a cylinder geometry with the specified radius, height and material.

#### Declaration

Swift

``convenience init(radius: CGFloat, height: CGFloat, material: SCNMaterial)``

#### Parameters

 ``` radius ``` The radius of the cylinder’s circular cross section in the x- and z-axis dimensions of its local coordinate space. ``` height ``` The height of the cylinder along the y-axis of its local coordinate space. ``` material ``` The material of the geometry.
• ``` init(diameter:height:material:) ```

SwifterSwift: Creates a cylinder geometry with the specified diameter, height and material.

#### Declaration

Swift

``convenience init(diameter: CGFloat, height: CGFloat, material: SCNMaterial)``

#### Parameters

 ``` radius ``` The radius of the cylinder’s circular cross section in the x- and z-axis dimensions of its local coordinate space. ``` height ``` The height of the cylinder along the y-axis of its local coordinate space. ``` material ``` The material of the geometry.
• ``` init(radius:height:color:) ```

SwifterSwift: Creates a cylinder geometry with the specified radius, height, and material color.

#### Declaration

Swift

``convenience init(radius: CGFloat, height: CGFloat, color: Color)``

#### Parameters

 ``` radius ``` The radius of the cylinder’s circular cross section in the x- and z-axis dimensions of its local coordinate space. ``` height ``` The height of the cylinder along the y-axis of its local coordinate space. ``` color ``` The color of the geometry’s material.
• ``` init(diameter:height:color:) ```

SwifterSwift: Creates a cylinder geometry with the specified diameter, height, and material color.

#### Declaration

Swift

``convenience init(diameter: CGFloat, height: CGFloat, color: Color)``

#### Parameters

 ``` diameter ``` The diameter of the cylinder’s circular cross section in the x- and z-axis dimensions of its local coordinate space. ``` height ``` The height of the cylinder along the y-axis of its local coordinate space. ``` color ``` The color of the geometry’s material.