# Cant use Geodesics

**URL:** <https://shapeworks.discourse.group/t/cant-use-geodesics/164>\
**Category:** Uncategorized\
**Created:** [July 10, 2023, 2:06pm UTC](https://shapeworks.discourse.group/t/cant-use-geodesics/164 "2023-07-10T14:06:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hip\_ssm](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@hip\_ssm](https://shapeworks.discourse.group/u/hip_ssm)\
**Post date:** [July 10, 2023, 2:06pm UTC](https://shapeworks.discourse.group/t/cant-use-geodesics/164/1 "2023-07-10T14:06:23Z")

</div>

Hi there. I am trying to use both normals and geodesics for a pelvis statistical shape model. The problem is that anytime I select the geodesic function and run the optimization, I get the following error

Error: checkFinite() failure: Non-finite matrix entry [62164,62164] = -nan(ind)

Without the geodesics, the pelvis models has large grooves (please see the attached images) despite there not being any holes in the STL files and grooming process

I also checked the models in Meshmixer for any errors (such as non-manifold edges) and none came up.

Does anyone know how to correct this error so I can run geodesics?

 ![Screenshot 2023-07-10 100433](https://global.discourse-cdn.com/free1/uploads/shapeworks/original/1X/5d6d9cab35873fb190d6515a2ade326a5e57dc4a.png)

---

<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:** [July 27, 2023, 2:49pm UTC](https://shapeworks.discourse.group/t/cant-use-geodesics/164/2 "2023-07-27T14:49:55Z")

</div>

The non-finite error should be fixed in the latest dev release:

> **[Release Development Build for Windows · SCIInstitute/ShapeWorks](https://github.com/SCIInstitute/ShapeWorks/releases/tag/dev-windows)**
>
> Commits
> 
> 4e0cd8e: Switch to eigen matrix for inverse covariance matrix to fix #2117 (Alan Morris) #2118
