# Reason for deviation in geometry

**URL:** <https://shapeworks.discourse.group/t/reason-for-deviation-in-geometry/276>\
**Category:** Uncategorized\
**Created:** [October 16, 2024, 10:05am UTC](https://shapeworks.discourse.group/t/reason-for-deviation-in-geometry/276 "2024-10-16T10:05:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Apoorva](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@Apoorva](https://shapeworks.discourse.group/u/Apoorva)\
**Post date:** [October 16, 2024, 10:05am UTC](https://shapeworks.discourse.group/t/reason-for-deviation-in-geometry/276/1 "2024-10-16T10:05:07Z")

</div>

Hi,  
I have trained my femur geometry using 512 particles with shapeworks software. However the raw and reconstructed geometry shows the deviation in the geometry.

1. Can you please let us know what is the reason for it?
2. Also how much deviation is expected in the geometry?
3. How to avoid the deviation?

---

<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:** [October 16, 2024, 5:28pm UTC](https://shapeworks.discourse.group/t/reason-for-deviation-in-geometry/276/2 "2024-10-16T17:28:06Z")

</div>

Can you describe a bit more about the deviation? I assume you are finding the reconstructed surface and groomed surface differ? Is it a consistent deviation? Or a deviation in only some particular areas?

We have some visualization tools that can assist in examining this:

> **[Viewer Controls - ShapeWorks](http://sciinstitute.github.io/ShapeWorks/latest/studio/studio-viewer.html#comparing-mesh-types)**
>
> The official documentation of ShapeWorks

---

<div class="post-metadata">

**Author:** ![Apoorva](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@Apoorva](https://shapeworks.discourse.group/u/Apoorva)\
**Post date:** [October 17, 2024, 9:00am UTC](https://shapeworks.discourse.group/t/reason-for-deviation-in-geometry/276/3 "2024-10-17T09:00:44Z")

</div>

Thank you for your reply.  
Yes there is deviation in groomed surface and reconstructed surface. I can see deviation is there even if we increase the number of particles. It is not coming to zero. I am attaching one image of the deviation analysis. I hope now you can answer the questions below,

1. Can you please let us know what is the reason for it?
2. Also how much deviation is expected in the geometry?
3. How to avoid the deviation?  
 ![image](https://global.discourse-cdn.com/free1/uploads/shapeworks/original/1X/6f9c390de47aea71bf072f793da2a36487a543e7.jpeg)

---

<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:** [October 23, 2024, 5:57pm UTC](https://shapeworks.discourse.group/t/reason-for-deviation-in-geometry/276/4 "2024-10-23T17:57:42Z")

</div>

It may take a very large number of particles to reduce the deviation. But there are other factors. The reference template mesh geometry is taken from the median shape and warped to the per-sample particles. There are several input-dependent factors that will each have an effect here. There’s no way for us to say how much deviation is expected as it is input dependent.
