hullSummary: Summary of 3D convex hull

View source: R/cxhull.R

hullSummaryR 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)

cxhull documentation built on Oct. 24, 2023, 9:07 a.m.