powered by
Locate points and compute triangular barycentric coordinates
fmesher_bary(mesh_loc, mesh_tv, loc, options)
A list with vector index (triangle index) and matrix where
index
where
(3-column barycentric matrix)
numeric matrix; mesh vertex coordinates
3-column integer matrix with 0-based vertex indices for each triangle
numeric matrix; coordinates of points to locate in the mesh
list of triangulation options
m <- fmesher_rcdt(list(cet_margin = 1), matrix(0, 1, 2)) b <- fmesher_bary(m$s, m$tv, matrix(c(0.5, 0.5), 1, 2), list())
Run the code above in your browser using DataLab