cxhull: Convex hull

Description Usage Arguments Value Examples

View source: R/cxhull.R

Description

Computes the convex hull of a set of points.

Usage

1
cxhull(points, triangulate = FALSE)

Arguments

points

numeric matrix, one point per row

triangulate

logical, whether to triangulate the convex hull

Value

A list.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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 May 1, 2019, 6:48 p.m.

Related to cxhull in cxhull...