zarquon42b / Morpho

R-package providing a toolset for (3D-based) Geometric Morphometrics
51 stars 16 forks source link

List generated instead of matrix in getTrafo4x4 #7

Closed J0vid closed 7 years ago

J0vid commented 7 years ago

I was trying to use rotmesh.onto and running into problems- I've attached a small R project that reproduces the issue and suggests a solution. The same behavior for getTrafo4x4 is present in getTrafo.rotonto:

https://1drv.ms/f/s!AsGOC9LHYLqjje1pZzN9V6fNileg3w

zarquon42b commented 7 years ago

Hi @J0vid Your problems result from reference and Marfan.ref not being matrices - which is required by the functions. Simply convert them to matrices and everything works fine:

reference <- as.matrix(read.table("mn_ply_lm.txt"))
Marfan.ref <- as.matrix(read.table("marfanref.txt"))

Best Stefan

zarquon42b commented 7 years ago

As I did not hear back from you, I assume this issue can be closed.