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

retroDeformMesh

symmetrize a triangular mesh


Description

symmetrize a triangular mesh

Usage

retroDeformMesh(mesh, mat, pairedLM, hmult = 5, alpha = 0.01,
  rot = TRUE, lambda = 1e-08, threads = 0)

Arguments

mesh

triangular mesh of class mesh3d

mat

matrix with bilateral landmarks

pairedLM

2-column integer matrix with the 1st columns containing row indices of left side landmarks and 2nd column the right hand landmarks

hmult

damping factor for calculating local weights which is calculated as humult times the average squared distance between a landmark and its closest neighbor (on each side).

alpha

factor controlling spacing along x-axis

rot

logical: if TRUE the deformed landmarks are rotated back onto the original ones

lambda

control parameter passed to tps3d

threads

integer: number of threads to use for TPS deform

Details

this function performs retroDeform3d and deforms the mesh accordingly using the function tps3d.

Value

mesh

symmetrized mesh

landmarks

a list containing the deformed and original landmarks


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.