MCPcopy Create free account
hub / github.com/tdewolff/canvas / Or

Method Or

path_intersection.go:170–172  ·  view source on GitHub ↗

Or is the same as Path.Or, but faster if paths are already split. Each resulting path is a single filling path followed by its holes as subpaths.

(qs Paths)

Source from the content-addressed store, hash-verified

168// Or is the same as Path.Or, but faster if paths are already split. Each resulting path
169// is a single filling path followed by its holes as subpaths.
170func (ps Paths) Or(qs Paths) Paths {
171 return bentleyOttmann(ps, qs, opOR, NonZero)
172}
173
174// Xor returns the boolean path operation of path p XOR q, i.e. the symmetric difference of both.
175// It removes all self-intersections and overlapping areas, orients all filling paths CCW and all

Callers

nothing calls this directly

Calls 1

bentleyOttmannFunction · 0.85

Tested by

no test coverage detected