InsertIntersections: Inserts points on paths where two paths intersect

Description Usage Arguments Value Author(s) References

View source: R/InsertIntersections.R

Description

This function does two rounds of insertion. First, it inserts a point on each path whenever path1 intersects path2. Next, it optionally inserts points on segments of one path that are 'opposite' points on the other path, to allow a monotonic mapping between the two paths.

Usage

1
InsertIntersections(path1, path2, insertopposites = T, verbose = F)

Arguments

path1

path1

path2

path2

insertopposites

T/F, whether points opposite points on the other path should be inserted

verbose

T/F, whether to print interim progress information

Value

A list of four data sequences are returned:

newpath1

New list 1 with new points inserted

newpath2

New list2 with new points inserted

key1

Set of indices mapping the points back to the original path 1. Inserted points are labeled -1

key2

Set of indices mapping the points back to the original path 2. Inserted points are labeled -1

Author(s)

Shane T. Mueller and Brandon Perelman

References

See Mueller et al., (2016). https://sites.google.com/a/mtu.edu/mapping/


pathmapping documentation built on May 2, 2019, 4:20 a.m.