fmesher_bary | R Documentation |
Locate points and compute triangular barycentric coordinates
fmesher_bary(mesh_loc, mesh_tv, loc, options)
mesh_loc |
numeric matrix; mesh vertex coordinates |
mesh_tv |
3-column integer matrix with 0-based vertex indices for each triangle |
loc |
numeric matrix; coordinates of points to locate in the mesh |
options |
list of triangulation options |
A list with vector t
and matrix bary
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())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.