ashape2poly: Convert an alpha shape object to a polygon. Modified from...

View source: R/alphashape2poly.R

ashape2polyR Documentation

Convert an alpha shape object to a polygon. Modified from https://rpubs.com/geospacedman/alphasimple.

Description

Convert an alpha shape object to a polygon. Modified from https://rpubs.com/geospacedman/alphasimple.

Usage

ashape2poly(ashape)

Arguments

ashape

An alpha shape object.

Value

The polygon matching the boundaries of the alpha shape.

Examples

set.seed(123)
x <- matrix(runif(100), nc = 2)
ashape_02 <- alphahull::ashape(x, alpha = 0.2)
poly_result <- ashape2poly(ashape_02)

babichmorrowc/hull2spatial documentation built on Oct. 22, 2023, 12:28 a.m.