setAlpha | R Documentation |
Given a full alpha hull, this function allows to set the value of alpha, either an arbitrary positive number, or an optimal value for a desired number of connected components, or a value for which the alpha hull is solid.
setAlpha(ahull, alpha = "solid")
ahull |
a full alpha hull, i.e. an output of |
alpha |
there are three possibilities for this parameter: it can be
a positive number, or the character string |
A rgl mesh (class mesh3d
) with the value of
alpha in the "alpha"
attribute.
fullAhull3d
, optimal
.
library(AlphaHull3D) ahull <- fullAhull3d(gissid) mesh <- setAlpha(ahull, alpha = optimal(1)) mesh$normals <- NULL library(rgl) open3d(windowRect = c(50, 50, 562, 562)) shade3d(mesh, color = "maroon")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.