srecord noeq G22HolePaths(IImageRegion region) { // paths are not closed (first pixel not added again at the end) L get() { L outlines = region.createdWithDiagonals() ? g22_allBorderTraces_withDiagonals(region) : g22_allBorderTraces(region); ret map(dropFirst(outlines), points -> new OnePathWithOrigin(points, false)); } }