powered by
project points onto a given surface and return projected points and normals.
projRead(lm, mesh, readnormals = TRUE, smooth = FALSE, sign = TRUE, ...)
if readnormals = FALSE, a m x 3 matrix containing projected points is returned, otherwise a list, where
3 x m matrix containing projected points
3 x m matrix containing normals
vector containing distances
m x 3 matrix containing 3D coordinates.
character: specify path to mesh file.
logical: return normals of projected points.
logical: rerturn smoothed normals.
logical: request signed distances.
additional arguments currently not used.
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) if (FALSE) { repro <- projRead(shortnose.lm,shortnose.mesh) }
Run the code above in your browser using DataLab