dist_to_boundary: dist_to_boundary

View source: R/alpha_shape.R

dist_to_boundaryR Documentation

dist_to_boundary

Description

Given a point set and an alpha-shape, get the distance of each point to the closest boundary point of the alpha-shape. Points inside the shape get negative values.

Usage

dist_to_boundary(points, shape)

Arguments

points

a data frame with x,y,z columns

shape

an object of class ashape3d with a single alpha value

Value

vector of distances (negative values indicate points inside the shape)


LOMAR documentation built on Sept. 27, 2024, 1:06 a.m.