projects the vertices of a mesh onto the surface of another one by searching for the closest point along vertex normals on the target by for each vertex.
ray2mesh(mesh1, tarmesh, tol = 1e+12, inbound = FALSE, mindist = FALSE, ...)
returns projected mesh with additional list entries:
integer vector containing a value for each vertex of x
: 1 indicates that a ray has intersected 'tarmesh' within the given threshold, while 0 means not
numeric vector: distances to intersection
mesh to project. Can be an object of class "mesh3d" or path to an external mesh file (ply, obj, stl).
mesh to project onto. Can be an object of class "mesh3d" or path to an external mesh file (ply, obj, stl).
numeric: maximum distance to search along ray, closest Euclidean distance will be used, if tol is exceeded.
inverse search direction along rays.
search both ways (ray and -ray) and select closest point.
additional arguments not used at the moment.
Stefan Schlager
ply2mesh
, closemeshKD