fmesher_split_lines {fmesher} | R Documentation |
Split lines at triangle edges
Description
Split a sequence of line segments at triangle edges
Usage
fmesher_split_lines(mesh_loc, mesh_tv, loc, idx, options)
Arguments
mesh_loc |
numeric matrix; mesh vertex coordinates |
mesh_tv |
3-column integer matrix with 0-based vertex indices for each triangle |
loc |
numeric coordinate matrix |
idx |
2-column integer matrix |
options |
list of triangulation options ( |
Value
A list of line splitting information objects
See Also
Examples
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)
[Package fmesher version 0.1.7 Index]