Contents

union(_:eoFill:)

Returns a new path with filled regions in either this path or the given path.

Declaration

func union(_ other: Path, eoFill: Bool = false) -> Path

Parameters

  • other:

    The path to union.

  • eoFill:

    Whether to use the even-odd rule for determining which areas to treat as the interior of the paths (if true), or the non-zero rule (if false).

Return Value

A new path.

Discussion

The filled region of resulting path is the combination of the filled region of both paths added together.

Any unclosed subpaths in either path are assumed to be closed. The result of filling this path using either even-odd or non-zero fill rules is identical.

See Also

Performing operations on the path