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)
}
thomasp85/ggforce documentation built on April 13, 2025, 10:34 a.m.