Skip to content

Commit

Permalink
fix vertex indices
Browse files Browse the repository at this point in the history
  • Loading branch information
dfsp-spirit committed Apr 4, 2022
1 parent a3f6a7e commit f24121e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/kdtree.R
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ interp_tris <- function(query_coordinates, mesh_vertices, nearest_face_vertices,
#' @keywords internal
interp_tris_cpp_wrapper <- function(query_coordinates, mesh_vertices, nearest_face_vertices, pervertex_data, iwd_beta = 2.0) {

# adjust indexing for C++
#nearest_face_vertices = nearest_face_vertices + 1L;
# Adjust indexing for C++ is not needed here.

return(.Call("interp_tris_c", query_coordinates, mesh_vertices, nearest_face_vertices, pervertex_data, iwd_beta));
}
Expand Down

0 comments on commit f24121e

Please sign in to comment.