View source: R/dem_to_points.R
dem_to_points | R Documentation |
Transform DEM to 3D pointcloud of raster corners
dem_to_points(dem, bh = NULL, parallel = FALSE)
dem |
Digital elevation model of class RasterLayer. |
bh |
Border height from lowest point. |
parallel |
Logical. Use parallel computation? |
A 3D point cloud for raster cell corners.
dem <- sim_dem(20, 0.5)
raster::plot(dem)
pts <- dem_to_points(dem)
rgl::plot3d(pts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.