Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

projRead

Project points onto the closest point on a mesh


Description

project points onto a given surface and return projected points and normals.

Usage

projRead(lm, mesh, readnormals = TRUE, smooth = FALSE, sign = TRUE,
  ...)

Arguments

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.

Value

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

Author(s)

Stefan Schlager

References

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.

See Also

Examples

data(nose)
## Not run: 
repro <- projRead(shortnose.lm,shortnose.mesh)

## End(Not run)

Morpho

Calculations and Visualisations Related to Geometric Morphometrics

v2.8
GPL-2
Authors
Stefan Schlager [aut, cre, cph], Gregory Jefferis [ctb], Dryden Ian [cph]
Initial release
2020-02-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.