quadmesh icon indicating copy to clipboard operation
quadmesh copied to clipboard

hmm prospects

Open mdsumner opened this issue 6 years ago • 1 comments

Download and build hmm: https://github.com/fogleman/hmm

Create a heightmap:

png::writePNG(volcano, "a.png")

Convert to STL:

bin/release/hmm a.png output.stl

Read in R and plot

d <- rgl::readSTL("output.stl", plot = FALSE)
 rgl::triangles3d(d, col = colourvalues::colour_values(d[,3]))
## rglwidget()

Densify the coordinates, build mesh3d etc. ...

library(dplyr)
as_tibble(d) %>% distinct()  ## 516 rows (not 3000)

mdsumner avatar Aug 27 '19 11:08 mdsumner

https://github.com/hypertidy/hmmr

mdsumner avatar Sep 23 '19 11:09 mdsumner