Convexity

public enum Convexity : UInt32

Path is convex if it contains one contour and contour loops no more than 360 degrees, and contour angles all have same Direction. Convex Path may have better performance and require fewer resources on GPU surface.

Path is concave when either at least one Direction change is clockwise and another is counterclockwise, or the sum of the changes in Direction is not 360 degrees.

Initially Path Convexity is kUnknown_Convexity. Path Convexity is computed f needed by destination Surface.

  • Indicates Convexity has not been determined.

    Declaration

    Swift

    case unknown = 0
  • Path has one contour made of a simple geometry without indentations.

    Declaration

    Swift

    case convex = 1
  • Path has more than one contour, or a geometry with indentations.

    Declaration

    Swift

    case concave = 2