Learn R Programming

pathmapping (version 1.0.2)

InsertIntersections:

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

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

References

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