segmentswithout
Segmentswithout is a term used in computational geometry and vector graphics to describe an operation that removes certain line segments from a collection. Specifically, given a set S of segments and a predicate P defined on segments, segmentswithout(S, P) yields the subset of S consisting of all segments s for which P(s) is false. In other words, it implements the set difference relative to a predicate: segmentswithout(S, P) = { s in S | not P(s) }.
In programming contexts, segmentswithout is often implemented as a filter or as a use of a higher-order
Performance and implementation notes vary with the cost of evaluating P. If P is constant-time, the operation
Applications of segmentswithout include data cleaning in geographic information systems, preparation of vector graphics for rendering,
See also: filter, clip, set difference, geometric predicates, polygon clipping.