How to Calculate Mode Coefficients for a Target Shape in ShapeWorks

Hello everyone, I would like to ask a question in this forum. I have input seven samples into ShapeWorks for analysis, and I obtained the mean shape of the project as well as the displacements of different modes. If I want to know the coefficient values that a particular sample holds in different modes, i.e., how to solve for the coefficients in the equation: target shape = mean shape + sum(coefficient * mode shape displacement)? Is there a way to obtain this within the software, or can I calculate this using a Python script? Thank you!

Yes, you can export the PCA Component Scores from within ShapeWorks Studio.

Thanks a lot for your response ! But I wonder why it’s not fit to my original obj data when I use the PCA Component Scores data from Shapeworks. I wanna know how to use the values of these PCA component scores. Thanks !

The original samples world particles (aligned, with procrustes if enabled) should match:

mean_shape + (score1 * eigenvector1) + (score2 * eigenvector2) + (score3 * eigenvector3) + ...

Using all most should enable you to reconstruct each shape in the original dataset.

OK, I see ! Thanks a lot for your response ! I can successfully reconstruct the target model finally !