alignMesh.PCA: Align a mesh3d object along the axes of its two main...

View source: R/align_pca.R

alignMesh.PCAR Documentation

Align a mesh3d object along the axes of its two main principal components (Deprecated)

Description

[Deprecated]

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.

Usage

alignMesh.PCA(mesh)

Arguments

mesh

a mesh3d object to be aligned.

Value

aligned mesh3d object with vertex coordinates replaced by PCA scores.

Note

  • This function is deprecated. Use Morpho::pcAlign() instead (i.e. Morpho::pcAlign(demoFlake1$mesh))

  • Normals are not updated by this function.

Author(s)

Shannon McPherron, Cornel M. Pop

Examples

data(demoFlake1)
alignedMesh<-alignMesh.PCA(demoFlake1$mesh)
## Not run: 
library(rgl)
view3d(theta=0, phi=0)
shade3d(alignedMesh, color=3)

## End(Not run)

cornelmpop/Lithics3D documentation built on Feb. 10, 2024, 11:54 p.m.