def sweeps

bend-visgraph@2.0.0.0 · visgraph.bend:744

import bend-visgraph@2.0.0.0/visgraph.bend as Visgraph
import Base

744# The sweeps of the first `count` points of `pts`, one rope each: ts2vg's
745# outer loop.
746def sweeps(pts: Pts, count: Nat, +g: Visibility, +dir: Direction, +k: Weight, +lo: F32, +hi: F32, +limit: Nat) -> Edges:
747  match pts count:
748    case PCon{i, x, y, +next} 1n+c:
749      EJoin{sweep(g, dir, k, lo, hi, limit, i, x, y, next, ENil{}), sweeps(next, c, g, dir, k, lo, hi, limit)}
750    case _ _:
751      ENil{}

Uses (8)

Used by (1)