cxhull {cxhull} | R Documentation |
Computes the convex hull of a set of points.
cxhull(points, triangulate = FALSE)
points |
numeric matrix, one point per row |
triangulate |
logical, whether to triangulate the convex hull |
A list providing a lot of information about the convex hull. See the README file for details.
library(cxhull)
points <- rbind(
c(0.5,0.5,0.5),
c(0,0,0),
c(0,0,1),
c(0,1,0),
c(0,1,1),
c(1,0,0),
c(1,0,1),
c(1,1,0),
c(1,1,1)
)
cxhull(points)