i_overlay 6.0.0

Boolean Operations for 2D Polygons: Supports intersection, union, difference, xor, and self-intersections for all polygon varieties.
Documentation
{
  "fillRule": 1,
  "subjPaths": [
    [[0, 0], [1, 7], [7, 1]],
    [[0, 0], [5, 1], [1, 5]],
    [[0, 0], [1, 3], [3, 1]],
    [[0, 0], [2, 1], [1, 2]]
  ],
  "clipPaths": [],
  "subject": [[
    [
      [[0, 0], [1, 7], [7, 1]],
      [[0, 0], [5, 1], [1, 5]]
    ],
    [
      [[0, 0], [1, 3], [3, 1]],
      [[0, 0], [2, 1], [1, 2]]
    ]
  ]],
  "clip": [[]],
  "union": [[
    [
      [[0, 0], [1, 7], [7, 1]],
      [[0, 0], [5, 1], [1, 5]]
    ],
    [
      [[0, 0], [1, 3], [3, 1]],
      [[0, 0], [2, 1], [1, 2]]
    ]
  ]],
  "intersect": [[]],
  "difference": [[
    [
      [[0, 0], [1, 7], [7, 1]],
      [[0, 0], [5, 1], [1, 5]]
    ],
    [
      [[0, 0], [1, 3], [3, 1]],
      [[0, 0], [2, 1], [1, 2]]
    ]
  ]],
  "inverseDifference": [[]],
  "xor": [[
    [
      [[0, 0], [1, 7], [7, 1]],
      [[0, 0], [5, 1], [1, 5]]
    ],
    [
      [[0, 0], [1, 3], [3, 1]],
      [[0, 0], [2, 1], [1, 2]]
    ]
  ]]
}