ray2mesh | R Documentation |
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, ...)
mesh1 |
mesh to project. Can be an object of class "mesh3d" or path to an external mesh file (ply, obj, stl). |
tarmesh |
mesh to project onto. Can be an object of class "mesh3d" or path to an external mesh file (ply, obj, stl). |
tol |
numeric: maximum distance to search along ray, closest Euclidean distance will be used, if tol is exceeded. |
inbound |
inverse search direction along rays. |
mindist |
search both ways (ray and -ray) and select closest point. |
... |
additional arguments not used at the moment. |
returns projected mesh with additional list entries:
quality |
integer vector containing a value for each vertex of |
distance |
numeric vector: distances to intersection |
Stefan Schlager
ply2mesh
, closemeshKD
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.