Figure out which edges in the delaunay diagram are within the union of balls
get_lines(delaunay_tri_data, data_raw, delta, n_steps = 100)
delaunay_tri_data | sp data of delaunay triangles lines (sp::SpatialLines) |
---|---|
data_raw | data frame with center points of balls |
delta | fixed radius of all the balls |
n_steps | number of equidistance points along the line, past delta on both sides, that will be checked to approximate all points along the line |
lines of edges that are kept (each edge has 2 rows and share an index). These edges are within the union of the balls.
lines of edges that should be removed (i.e. are not with the union of balls.)
This function is shared with TCpredictionbands on github: TCpredictionbands.