Visgraph.blocked_natural: def of bend-visgraph@2.0.0.0 Import: import bend-visgraph@2.0.0.0/visgraph.bend as Visgraph Lines 645-652 of bend-visgraph@2.0.0.0/visgraph.bend: https://jend.leeeet.dev/read.txt?path=bend-visgraph@2.0.0.0/visgraph.bend&start_line=645&end_line=652 import Base # How many tops a natural edge with slope `s` does not clear, as ts2vg's # num_penetrations weight. def blocked_natural(ts: Tops, +s: F32, +t: F32, +n: F32) -> F32: match ts: case TNil{}: n case TCon{v, next}: blocked_natural(next, s, t, pick(greater(s, v, t), n, F32.add(n, 1.0))) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.add https://jend.leeeet.dev/definition.txt?path=bend-visgraph@2.0.0.0/visgraph.bend&name=Tops https://jend.leeeet.dev/definition.txt?path=bend-visgraph@2.0.0.0/visgraph.bend&name=greater https://jend.leeeet.dev/definition.txt?path=bend-visgraph@2.0.0.0/visgraph.bend&name=pick