hullSummary {cxhull}R Documentation

Summary of 3D convex hull

Description

Summary of a triangulated 3D convex hull

Usage

hullSummary(hull)

Arguments

hull

an output of cxhull applied to 3D points and with the option triangulate=TRUE

Value

A list with the vertices and the facets.

Examples

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)

[Package cxhull version 0.7.4 Index]