powered by
Split a sequence of line segments at triangle edges
fmesher_split_lines(mesh_loc, mesh_tv, loc, idx, options)
A list of line splitting information objects
numeric matrix; mesh vertex coordinates
3-column integer matrix with 0-based vertex indices for each triangle
numeric coordinate matrix
2-column integer matrix
list of triangulation options (sphere_tolerance)
sphere_tolerance
fm_split_lines()
mesh <- fm_mesh_2d( boundary = fm_segm(rbind(c(0,0), c(1,0), c(1,1), c(0, 1)), is.bnd = TRUE) ) splitter <- fm_segm(rbind(c(0.8, 0.2), c(0.2, 0.8))) segm_split <- fm_split_lines(mesh, splitter)
Run the code above in your browser using DataLab