Closed mdsumner closed 6 years ago
Check with
library(silicate)
rgl::rgl.clear(); plot(anglr(minimal_mesh)); rgl::rglwidget()
library(sf)
example(st_read)
rgl::rgl.clear(); plot(anglr(nc)); rgl::rglwidget()
gg <- spbabel::sp(ggpolypath::gardenstate %>% dplyr::mutate(x_ = x, y_ = y, order_ = order, branch_ = group, object_ = id, island_ = !hole))
rgl::rgl.clear(); plot(anglr(st_as_sf(gg))); rgl::rglwidget()
rgl::rgl.clear(); plot(anglr(sfdct::lakesuperior)); rgl::rglwidget()
Sweet, all is good. 2debd4e
https://github.com/hypertidy/anglr/blob/b1b960e99f7a4052f390366a947fc33509bea57e/R/plot.r#L64
Having issues with colour mapping from pfft. I think this fixes it:
Need to join from the triangle_link_vertex table for both indexes. (And there's probably a better solution)