fmesher_bary {fmesher} | R Documentation |
Barycentric coordinate computation
Description
Locate points and compute triangular barycentric coordinates
Usage
fmesher_bary(mesh_loc, mesh_tv, loc, 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 matrix; coordinates of points to locate in the mesh |
options |
list of triangulation options |
Value
A list with vector t
and matrix bary
Examples
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())
[Package fmesher version 0.1.7 Index]