Skip to contents

Transform DEM to 3D pointcloud of raster corners

Usage

dem_to_points(dem, bh = NULL, parallel = FALSE)

Arguments

dem

Digital elevation model of class RasterLayer.

bh

Border height from lowest point.

parallel

Logical. Use parallel computation?

Value

A 3D point cloud for raster cell corners.

Examples

dem <- sim_dem(20, 0.5)
raster::plot(dem)

pts <- dem_to_points(dem)
rgl::plot3d(pts)