projRead | R Documentation |
project points onto a given surface and return projected points and normals.
projRead(lm, mesh, readnormals = TRUE, smooth = FALSE, sign = TRUE, ...)
lm |
m x 3 matrix containing 3D coordinates. |
mesh |
character: specify path to mesh file. |
readnormals |
logical: return normals of projected points. |
smooth |
logical: rerturn smoothed normals. |
sign |
logical: request signed distances. |
... |
additional arguments currently not used. |
if readnormals = FALSE, a m x 3 matrix containing projected points is returned, otherwise a list, where
vb |
3 x m matrix containing projected points |
normals |
3 x m matrix containing normals |
quality |
vector containing distances |
Stefan Schlager
Detection of inside/outside uses the algorithm proposed in:
Baerentzen, Jakob Andreas. & Aanaes, H., 2002. Generating Signed Distance Fields From Triangle Meshes. Informatics and Mathematical Modelling.
closemeshKD
data(nose)
## Not run:
repro <- projRead(shortnose.lm,shortnose.mesh)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.