cxhull: Convex hull

View source: R/cxhull.R

cxhullR Documentation

Convex hull

Description

Computes the convex hull of a set of points.

Usage

cxhull(points, triangulate = FALSE)

Arguments

points

numeric matrix, one point per row

triangulate

logical, whether to triangulate the convex hull

Value

A list providing a lot of information about the convex hull. See the README file for details.

Examples

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)

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