fm_mesh_intersection: Construct the intersection mesh of a mesh and a polygon

View source: R/mesh.R

fm_mesh_intersectionR Documentation

Construct the intersection mesh of a mesh and a polygon

Description

Construct the intersection mesh of a mesh and a polygon

Usage

fm_mesh_intersection(mesh, poly)

Arguments

mesh

fm_mesh_2d object to be intersected

poly

fm_segm object with a closed polygon to intersect with the mesh

Value

An fm_mesh_2d object

Author(s)

Finn Lindgren finn.lindgren@gmail.com

Examples

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)

fmesher documentation built on Nov. 2, 2023, 5:35 p.m.