the function in Morpho to do 3D mesh deformation is called tps3d. As input, 
you need one reference mesh and its corresponding coordinates, and new set 
of coordinates where it will be transformed to. So you have take your PC 
value, convert to a landmark coordinate (e.g., for PC1 it would be 
something like meanshape + PC1_eigenvector*scaling)  and then call tps3d. I 
think Geomorph warpRefMesh is similar. But please look up the documentation 
for specifics.

You can also do this interactively in SlicerMorph GPA's module using its 
interactive visualization. If you have too many landmarks (hundreds range) 
it will be a bit slow. 

On Thursday, October 19, 2023 at 10:24:05 AM UTC-7 Pablo Fisichella wrote:

>
> Dear morphogeometricians
>
> Hope you are well. I ran a GM analysis using 3D landmarks obtained in 
> aviso for mice skulls and I used shapes and Morpho R packages. I’m trying 
> to obtain deformations (so-called warping or morphing) for the negative and 
> positive PC shape changes of a 3D model. However, I can’t find a method to 
> do this in R. I realized Morpho allows to obtain a 3D warp movie but I’m 
> not sure that method is the one I’m looking for and in Geomorph there is a 
> function (warpRefMesh) to create warpings but using just the mean shape 
> (ref) and a specific individual not for PCs. I have used MorphoJ and 
> Landmark IDAV to do this in the past but since I’m using a lot of 
> semilandmarks it is a bit difficult to digitize my dataset in Landmark to 
> do the warpings. I uploaded my dataset in Morpho, and by using the function 
> write.pts I was able to transform the 3D coordinates in a .PTS file. 
> Despite that the file uploads correctly in the corresponding mesh in 
> Landmark I don’t know why I can’t run the method explained in the MorphoJ 
> user guide. It seems the landmarks uploaded in Landmark must be obtained 
> directly in Landmark IDAV and not using the method described above. In any 
> case, I want to obtain 3D shape deformations of a 3D mesh according to PC 
> scores in R but I was not able to use any of the methods mentioned above in 
> Morpho and Geomorph. Thanks in advance for any help with this issue. 
>
> All best,
>
> Pablo 
>
>
>
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>  Libre 
> de virus.www.avg.com 
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>  
> <#m_-7693562851123069935_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Morphmet" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/morphmet2/f78822f5-43b2-4b7b-bd87-5fa14b8979b2n%40googlegroups.com.

Reply via email to