naive polygon viewer
view_seg(x, xlim, ylim, show_tx = FALSE, ...)
This is more RAM-sparing than clip_rect followed by view.
gbm = build_demo()
out = view_seg(gbm, c(5800, 6500), c(6300, 7000), lwd=.5, col="lightgray", show_tx=TRUE)
#> start filter tx
#> end filter tx
out$ncells
#> [1] 5120