# Shape analysis error

**URL:** <https://discourse.slicer.org/t/shape-analysis-error/33764>\
**Category:** Support\
**Created:** [January 14, 2024, 3:00am UTC](https://discourse.slicer.org/t/shape-analysis-error/33764 "2024-01-14T03:00:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anasmh101](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anasmh101/32/80621_2.png) [@anasmh101](https://discourse.slicer.org/u/anasmh101)\
**Post date:** [January 14, 2024, 3:00am UTC](https://discourse.slicer.org/t/shape-analysis-error/33764/1 "2024-01-14T03:00:46Z")

</div>

I have problem in shape analysis module, I am doing shape analysis for mandible condyles pre/post operative, in many cases after doing the shape analysis, the output shape population viewer show flipped models as shown in screen shot, although I made sure that the segmentation models are completely closed and no holes or gaps in the segmentations after cropping, but still get same flipped models, after many trials. I opted to make new segmentations for the condyles but still get same flipped output models after performing shape analysis  
( **this issue happens for one sided condyles, For example, the problem is happening for left condyles models, while right condyles models taken from the exact same mandible segmentation have no problem at all in shape analysis result)**  
what am I doing wrong or missing ?

 ![error in condyle](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/f/1faccbd9a15cc3ad7c9b83e3b2c4d303ea25edf1.png)  
 ![shape analysis error2](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/d/1d9ac8e5af59c1f50cacc4ceb5f90b6fc271781b.png)

---

<div class="post-metadata">

**Author:** ![anasmh101](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anasmh101/32/80621_2.png) [@anasmh101](https://discourse.slicer.org/u/anasmh101)\
**Post date:** [January 14, 2024, 4:43am UTC](https://discourse.slicer.org/t/shape-analysis-error/33764/2 "2024-01-14T04:43:14Z")

</div>

this is what is shown on the python console when the output of shape analysis is flipped unaligned models

 ![python for error condyle](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/e/0e2bf03c25ba8b0f9a2b0a48e8335f341e3f7333.png)

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [January 14, 2024, 6:00am UTC](https://discourse.slicer.org/t/shape-analysis-error/33764/3 "2024-01-14T06:00:06Z")

</div>

You have some non-ascii characters, and extremely long file path that might cause the reported write issue. I would first try with a simpler path, without any non-english characters and see if it works.

---

<div class="post-metadata">

**Author:** ![anasmh101](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anasmh101/32/80621_2.png) [@anasmh101](https://discourse.slicer.org/u/anasmh101)\
**Post date:** [January 14, 2024, 8:14am UTC](https://discourse.slicer.org/t/shape-analysis-error/33764/4 "2024-01-14T08:14:57Z")

</div>

thank you for you reply, this is the python script I got with simpler path, same result flipped output models

 ![python script 2](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/9/893044d678fa08200eb4c06198d4577b7065fd86.png)

---

<div class="post-metadata">

**Author:** ![anasmh101](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anasmh101/32/80621_2.png) [@anasmh101](https://discourse.slicer.org/u/anasmh101)\
**Post date:** [January 14, 2024, 8:45am UTC](https://discourse.slicer.org/t/shape-analysis-error/33764/5 "2024-01-14T08:45:07Z")

</div>

![python script 3](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/7/17f16d6326921c60e60bd851b30449244a665eff.png)

---

<div class="post-metadata">

**Author:** ![anasmh101](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anasmh101/32/80621_2.png) [@anasmh101](https://discourse.slicer.org/u/anasmh101)\
**Post date:** [January 14, 2024, 8:45am UTC](https://discourse.slicer.org/t/shape-analysis-error/33764/6 "2024-01-14T08:45:35Z")

</div>

![pythone script 4](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/8/082314c0ed3b23df11f2535a043b5946a5ecd4b9.png)

---

<div class="post-metadata">

**Author:** ![anasmh101](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anasmh101/32/80621_2.png) [@anasmh101](https://discourse.slicer.org/u/anasmh101)\
**Post date:** [January 14, 2024, 4:30pm UTC](https://discourse.slicer.org/t/shape-analysis-error/33764/7 "2024-01-14T16:30:53Z")

</div>

the previous shape analysis screenshots taken from slicer operated on windows, this one is done on Macbook

 ![WhatsApp Image 2024-01-15 at 00.05.39_d5bed559](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/1/419f00c595a4c2da90fbd46e9dd5a8f45a8c2fc0.jpeg)
