hypertidy / anglr

Mesh creation and topology for spatial data (and not just geographic)
https://hypertidy.github.io/anglr/
83 stars 10 forks source link

as.mesh3d for spatials #159

Open mdsumner opened 3 years ago

mdsumner commented 3 years ago

currently we have

as.mesh3d.sfc <-function(x, ...

  as.mesh3d(TRI0(x),

but, that was a mistake. It needs to stick to the silicate way, and allow the new mesh3d types ie.

points = for POINT segments = M/LINESTRING, M/POLYGON

in rare cases there'll be SF triangles but that stuff's not fully fleshed out in silicate. Otherwise, you can push sf through SC0/TRI0/DEL0 for the obvious (re)interpretations.

Qs

mdsumner commented 3 years ago

that was pretty easy