alignMesh.PCA | R Documentation |
Performs a simple alignment of the input triangular mesh along its two main principal components. While generally useful for flat, elongated flakes and bifaces, this function does not guarantee proper alignment along a technologically or typologically relevant axis. Nevertheless, it is useful for preliminary mesh operations/analyses.
alignMesh.PCA(mesh)
mesh |
a mesh3d object to be aligned. |
aligned mesh3d object with vertex coordinates replaced by PCA scores.
This function is deprecated. Use Morpho::pcAlign()
instead (i.e. Morpho::pcAlign(demoFlake1$mesh))
Normals are not updated by this function.
Shannon McPherron, Cornel M. Pop
data(demoFlake1)
alignedMesh<-alignMesh.PCA(demoFlake1$mesh)
## Not run:
library(rgl)
view3d(theta=0, phi=0)
shade3d(alignedMesh, color=3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.