SCNSphere

public extension SCNSphere
  • SwifterSwift: Creates a sphere geometry with the specified diameter.

    Declaration

    Swift

    convenience init(diameter: CGFloat)

    Parameters

    diameter

    The diameter of the sphere in its local coordinate space.

  • SwifterSwift: Creates a sphere geometry with the specified radius and material.

    Declaration

    Swift

    convenience init(radius: CGFloat, material: SCNMaterial)

    Parameters

    radius

    The radius of the sphere in its local coordinate space.

    material

    The material of the geometry.

  • SwifterSwift: Creates a sphere geometry with the specified radius and material color.

    Declaration

    Swift

    convenience init(radius: CGFloat, color: Color)

    Parameters

    radius

    The radius of the sphere in its local coordinate space.

    color

    The color of the geometry’s material.

  • SwifterSwift: Creates a sphere geometry with the specified diameter and material.

    Declaration

    Swift

    convenience init(diameter: CGFloat, material: SCNMaterial)

    Parameters

    diameter

    The diameter of the sphere in its local coordinate space.

    material

    The material of the geometry.

  • SwifterSwift: Creates a sphere geometry with the specified diameter and material color.

    Declaration

    Swift

    convenience init(diameter: CGFloat, color: Color)

    Parameters

    diameter

    The diameter of the sphere in its local coordinate space.

    color

    The color of the geometry’s material.