volume_ashape3d  R Documentation 
This function calculates the volume of the αshape of a given sample of points in the threedimensional space.
volume_ashape3d(as3d, byComponents = FALSE, indexAlpha = 1)
as3d 
An object of class 
byComponents 
Logical, if FALSE (default) 
indexAlpha 
A single value or vector with the indexes of

The function volume_ashape3d
computes the volume of the
αshape for each value of α in
as3d$alpha[indexAlpha]
when indexAlpha
is numeric.
If indexAlpha="all"
or indexAlpha="ALL"
then the function
computes the volume of the αshape for all values of α
in as3d$alpha
.
If indexAlpha
is a single value then the function returns the
volume of the αshape (if the argument byComponents
is set
to FALSE) or a vector with the volumes of each connected component of the
αshape (if the argument byComponents
is set to TRUE).
Otherwise volume_ashape3d
returns a list (each object in the list as
described above).
ashape3d
, components_ashape3d
C1 < matrix(runif(6000), nc = 3) C2 < matrix(runif(6000), nc = 3) + 2 x < rbind(C1, C2) ashape3d.obj < ashape3d(x, alpha = 0.75) plot(ashape3d.obj, byComponents = TRUE) # Compute the volume of the alphashape volume_ashape3d(ashape3d.obj) # Compute the volumes of the connected components of the alphashape volume_ashape3d(ashape3d.obj, byComponents = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.