SCNShape

public extension SCNShape
  • SwifterSwift: Creates a shape geometry with the specified path, extrusion depth, and material.

    Declaration

    Swift

    convenience init(path: UIBezierPath, extrusionDepth: CGFloat, material: SCNMaterial)

    Parameters

    path

    The two-dimensional path forming the basis of the shape.

    extrusionDepth

    The thickness of the extruded shape along the z-axis.

    material

    The material of the geometry.

  • SwifterSwift: Creates a shape geometry with the specified path, extrusion depth, and material.

    Declaration

    Swift

    convenience init(path: UIBezierPath, extrusionDepth: CGFloat, color: Color)

    Parameters

    path

    The two-dimensional path forming the basis of the shape.

    extrusionDepth

    The thickness of the extruded shape along the z-axis.

    color

    The color of the geometry’s material.