powered by
Summary of a triangulated 3D convex hull
hullSummary(hull)
A list with the vertices and the facets.
an output of cxhull applied to 3D points and with the option triangulate=TRUE
cxhull
triangulate=TRUE
library(cxhull) # pyramid pts <- rbind( c(0, 0, 0), c(1, 0, 0), c(1, 1, 0), c(0.5, 0.5, 1), c(0.5, 0.5, 0.9), c(0, 1, 0) ) hull <- cxhull(pts, triangulate = TRUE) hullSummary(hull)
Run the code above in your browser using DataLab