interp_tris_cpp_wrapper | R Documentation |
Interpolate values within mesh triangles in C++.
interp_tris_cpp_wrapper( query_coordinates, mesh_vertices, nearest_face_vertices, pervertex_data, iwd_beta = 2 )
query_coordinates |
nx3 numerical matrix of x,y,z coordinates. These are typically the vertex positions of a second (spherical!) mesh for that you need per-vertex data (e.g., the |
mesh_vertices |
|
pervertex_data |
numerical vector, the continuous per-vertex data for the vertices of the mesh. |
iwd_beta |
scalar double, the |
vector with one entry per query coordinate (i.e., nrow(query_coordinates)
).
No validation of input data is done, do this yourself before passing values to this function to avoid hard crashes (which happen when junk is passed to C++
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.