Title: | 3D point cloud viewer for lidR |
---|---|
Description: | A simple point cloud viewer for R which enable to display million of points in a fluid way and using few memory. This package aims to replace rgl in lidR when the point cloud is to big to be held by rgl. |
Authors: | Jean-Romain Roussel [aut,cre,cph] |
Maintainer: | Jean-Romain Roussel <[email protected]> |
License: | GPL-3 |
Version: | 0.3.0 |
Built: | 2024-09-22 08:19:11 UTC |
Source: | https://github.com/r-lidar-lab/lidRviewer |
Display big 3D point clouds using rgl style. This function does no lag and can display almost instantly millions of points. It is optimized to used the lowest possible memory and is capable of displaying gigabytes of points allocating only few megabyte of memory
plot_xyzcol(x, y, z, col, id = NULL, size = 2) plot_xyzrgb(x, y, z, r, g, b, id = NULL, size = 2)
plot_xyzcol(x, y, z, col, id = NULL, size = 2) plot_xyzrgb(x, y, z, r, g, b, id = NULL, size = 2)
x |
numeric vector of x coordinates |
y |
numeric vector of y coordinates |
z |
numeric vector of z coordinates |
col |
character vector of hexadecimal colors. |
id |
integer vector. Memory optimization. Instead of storing 3 vectors of integer and potentially storing duplicated entries it is possible to provide a short list of colors and refer to these color using a single set of integer used as id to the color. |
size |
the size of the points |
r |
integer vector of red components |
g |
integer vector of green components |
b |
integer vector of blue components |
## Not run: x = runif(1000, 0, 100) y = runif(1000, 0, 100) z = runif(1000, 0, 100) col = rainbow(10) id = sample(1:10, 1000, replace = TRUE) plot_xyzcol(x, y, z, col, id) ## End(Not run)
## Not run: x = runif(1000, 0, 100) y = runif(1000, 0, 100) z = runif(1000, 0, 100) col = rainbow(10) id = sample(1:10, 1000, replace = TRUE) plot_xyzcol(x, y, z, col, id) ## End(Not run)