gen_hole: Remove points within a spherical hole in the middle

View source: R/util.R

gen_holeR Documentation

Remove points within a spherical hole in the middle

Description

Remove points within a spherical hole in the middle

Usage

gen_hole(df, anchor = NULL, r = 0.5)

Arguments

df

A tibble of coordinates.

anchor

A numeric vector giving the center of the hole.

r

A numeric value for the hole radius.

Value

A tibble with the hole removed.

Examples

set.seed(20240412)
df <- gen_scurve(n = 1000)
gen_hole(df, r = 0.5)


cardinalR documentation built on Dec. 15, 2025, 5:07 p.m.