cxhull {cxhull}R 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)

[Package cxhull version 0.7.4 Index]