# Multiple Domain SSM: MLCA pose = shape variation

**URL:** <https://shapeworks.discourse.group/t/multiple-domain-ssm-mlca-pose-shape-variation/326>\
**Category:** Uncategorized\
**Created:** [March 11, 2025, 9:11am UTC](https://shapeworks.discourse.group/t/multiple-domain-ssm-mlca-pose-shape-variation/326 "2025-03-11T09:11:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ongrec](https://avatars.discourse-cdn.com/v4/letter/o/87869e/32.png) [@ongrec](https://shapeworks.discourse.group/u/ongrec)\
**Post date:** [March 11, 2025, 9:11am UTC](https://shapeworks.discourse.group/t/multiple-domain-ssm-mlca-pose-shape-variation/326/1 "2025-03-11T09:11:00Z")

</div>

To familiarize myself with multiple domain SSM, I have been following the ShapeWorks use case tutorials (_[ellipsoid\_multiple\_domain\_mesh](https://sciinstitute.github.io/ShapeWorks/latest/use-cases/mesh-based/ellipsoid-multiple-domain-mesh.html)_ and _[hip\_multiple\_domain](https://sciinstitute.github.io/ShapeWorks/latest/use-cases/mesh-based/hip.html)_), using the latest version of ShapeWorks (v6.5.1).

Despite following the provided examples with the same settings, my shape analysis results differ from those shown on your website for both _ellipsoid\_multiple\_domain\_mesh_ and _hip\_multiple\_domain_.

For the _ellipsoid_ dataset, there are two stacked ellipsoids with identical radii, where the top ellipsoid rotates relative to the bottom one. This represents a pose variation in the data, as the shapes of both ellipsoids remain unchanged. However, when I run the analysis, MLCA identifies the rotating ellipsoid as a shape variation, while almost no pose variation is detected (I sent a video to shapeworks-users@sci.utah.edu _“2025-02-27 SW ellipsoid\_MD.mp4”_). It seems to me that this should be the other way around, as I would expect the variation to be in pose rather than in shape.

In the _multiple domain hip_ dataset, I have ensured that all settings match those in the example on your website (_hip\_multiple\_domain_). However, in my results, the hips move apart in a PCA analysis, whereas in the version displayed on your website (previously labeled as “both”), this does not occur (I sent a video to shapeworks-users@sci.utah.edu _“2025-02-27 SW hip\_MD.mp4”_). My assumption is that the use case data may no longer be fully compatible with the latest version of ShapeWorks.

Could you confirm whether these are known issues related to multiple domain SSM? If so, are there any recommended adjustments to ensure correct results?

Thank you in advance for your assistance.

---

<div class="post-metadata">

**Author:** ![amorris](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amorris](https://shapeworks.discourse.group/u/amorris)\
**Post date:** [March 14, 2025, 5:08pm UTC](https://shapeworks.discourse.group/t/multiple-domain-ssm-mlca-pose-shape-variation/326/2 "2025-03-14T17:08:32Z")

</div>

I don’t think your videos came through to the list for some reason. You can try emailing me directly at amorris@sci.utah.edu.

I looked into this and have some updates/comments.

1. I couldn’t actually run the `ellipsoid_multiple_domain_mesh` use case as is using ShapeWorks 6.5.1. It seems perhaps the dataset changed slightly. I created an issue here:

> <https://github.com/SCIInstitute/ShapeWorks/issues/2360>
>
> \`\`\`
> python RunUseCase.py ellipsoid\_multiple\_domain\_mesh
> 
> Using shapeworks module… from /Users/amorris/sci/shapeworks/code/Python/shapeworks/shapeworks/\_\_init\_\_.py
> Using shapeworks from /Users/amorris/sci/shapeworks/bin/bin/shapeworks
> 
> Step 1. Acquire Data
> 
> Dataset ellipsoid\_multiple\_domain\_mesh already downloaded (Output/ellipsoid\_multiple\_domain\_mesh.downloaded exists)
> 
> Step 2. Groom - Data Pre-processing
> 
> Traceback (most recent call last):
> File "/Users/amorris/sci/shapeworks/code/Examples/Python/RunUseCase.py", line 97, in \<module\>
> module.Run\_Pipeline(args)
> File "/Users/amorris/sci/shapeworks/code/Examples/Python/ellipsoid\_multiple\_domain\_mesh.py", line 109, in Run\_Pipeline
> domain1\_reference = mesh\_list\[ref\_index\*domains\_per\_shape\].copy()
> IndexError: list index out of range
> \`\`\`

This has been resolved and merged. I suggest that you try the development build here:

> **[Releases · SCIInstitute/ShapeWorks](https://github.com/SCIInstitute/ShapeWorks/releases)**
>
> ShapeWorks. Contribute to SCIInstitute/ShapeWorks development by creating an account on GitHub.

1. The documentation for these use cases pre-dates the Multi-level PCA analysis, so the screenshots don’t quite match. We need to update them.

2. There is also an alignment fix in the development version that should make the `hip_multiple_domain` work properly. We will work on updating the documentation pages.
