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

mirror2plane

mirror points or mesh on an arbitrary plane


Description

mirror points or mesh on an arbitrary plane

Usage

mirror2plane(x, v1, normal = NULL, v2 = NULL, v3 = NULL)

## S3 method for class 'matrix'
mirror2plane(x, v1, normal = NULL, v2 = NULL,
  v3 = NULL)

## S3 method for class 'mesh3d'
mirror2plane(x, v1, normal = NULL, v2 = NULL,
  v3 = NULL)

Arguments

x

x 3D-vector or a k x 3 matrix with 3D vectors stored in rows. Or a triangular mesh of class mesh3d

v1

point on plane

normal

plane normal (overrides specification by v2 and v3)

v2

if pNorm=NULL, the plane will be defined by three points v1, v2, v3

v3

if pNorm=NULL, the plane will be defined by three points v1, v2, v3

Value

mirrored coordinates mesh

Examples

# mirror mesh on plane spanned by 3 midsagital landmarks
data(boneData)
mirrmesh <- mirror2plane(skull_0144_ch_fe.mesh,v1=boneLM[1,,1],v2=boneLM[9,,1],v3=boneLM[10,,1])

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.