Given a linear network and a set of infinite lines, divide the network into tiles demarcated by the lines. The result is a tessellation of the network.
chop.linnet(X, L)
Linear network (object of class "linnet"
)
or data acceptable to as.linnet
.
Infinite line or lines (object of class "infline"
).
Tessellation on a linear network
(object of class "lintess"
).
The first line of L
divides X
into two tiles.
Subsequent lines divide each of these tiles. The result is a
tessellation of X
. Tiles are not necessarily connected sets.
# NOT RUN {
L <- infline(p=runif(3), theta=runif(3, max=pi/2))
Y <- chop.linnet(simplenet, L)
plot(Y, main="")
plot(L, col="red")
# }
Run the code above in your browser using DataLab