hypertidy / quadmesh

raster grid as indexed quad mesh
https://hypertidy.github.io/quadmesh/
25 stars 2 forks source link

reverse process of quadmesh(raster) #1

Closed mdsumner closed 5 years ago

mdsumner commented 8 years ago

Provide the ability to reverse the mesh back to the source data, where possible.

mdsumner commented 6 years ago

This is trivial if the mesh is still regular so some way to detect that needed, otherwise conversion to triangles and barycentric interp using geometry pkg should be easy enough - though possibly fasterize

mdsumner commented 5 years ago

qm_as_raster now does the basic work. Adding the barycentric approach could be pretty useful

mdsumner commented 5 years ago

In trigrid branch, tri_index returns the index and weight of of each vertex.