R/concaveman.R

Defines functions concaveman

concaveman <- function(points, concavity, threshold) {
  if (nrow(points) < 4) return(unname(points))
  hull <- as.integer(grDevices::chull(points)) - 1L
  concaveman_c(points, hull, concavity, threshold)
}

Try the ggforce package in your browser

Any scripts or data that you put into this service are public.

ggforce documentation built on June 18, 2025, 5:08 p.m.