fm_mesh_intersection | R Documentation |
Construct the intersection mesh of a mesh and a polygon
fm_mesh_intersection(mesh, poly)
mesh |
|
poly |
|
An fm_mesh_2d object
Finn Lindgren finn.lindgren@gmail.com
segm <- fm_segm(rbind(c(-4, -4), c(4, -4), c(0, 4)),
is.bnd = TRUE
)
str(m <- fm_mesh_intersection(fmexample$mesh, segm))
plot(fmexample$mesh)
lines(segm, col = 4)
plot(m, edge.color = 2, add = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.