Description Usage Arguments Value Author(s) Examples
View source: R/get_3d_alpha_shape.R
computes the 3d alpha shape, volume, surface area, and centroid of a 3D set of points
To avoid collinearity a small random jitter is added to the points before alpha-shape computation.
1 2 3 4 5 | get_3d_alpha_shape(
input_cloud = data.frame(x = runif(20), y = runif(20), z = runif(20)),
alpha = 1,
plot = FALSE
)
|
input_cloud |
A file or data.frame containing a tree point cloud with x y z. If file, it assumes first three columns to be x y z without header. Futher columns are ignored. |
alpha |
Alpha value for alpha-shape computation. Default 0.5 |
plot |
Should the 3d alpha shape be plotted. Default to FALSE. |
A data.frame containing: volume, surface area, vol_cen_x, vol_cen_y, vol_cen_z, alpha value and the alpha-shape object.
Matthias Kunz, last updated: 29.04.2019
1 | get_3d_alpha_shape(data.frame(x=runif(20),y=runif(20), z=runif(20)), alpha=1.0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.