# A problem with USING SPHARM-PDM generator

**URL:** <https://discourse.slicer.org/t/a-problem-with-using-spharm-pdm-generator/25668>\
**Category:** SlicerSALT\
**Created:** [October 13, 2022, 8:01am UTC](https://discourse.slicer.org/t/a-problem-with-using-spharm-pdm-generator/25668 "2022-10-13T08:01:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wael\_telha](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/wael_telha/32/16914_2.png) [@wael\_telha](https://discourse.slicer.org/u/wael_telha)\
**Post date:** [October 13, 2022, 8:01am UTC](https://discourse.slicer.org/t/a-problem-with-using-spharm-pdm-generator/25668/1 "2022-10-13T08:01:51Z")

</div>

the steps is the out of the DICOM i made a model that was saved as STL for the mandible as follow

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/0/40ef3dac5b63dbff88d29fb47b83604fb471717b.jpeg)

then i clipped a condyle and saved as a vtk for further work on SPHARM PDM-generator

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/f/4f9b4dd4f209afea9150f955aec93cc4d3ca2b16.png)

when i took this saved VTK to the slicer SALT for further SPHARM PDM-generator i always ended with an error

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/1/8182f20448e7cfcf8a4cdb3f4d20b2c600d065ad.jpeg)

---

<div class="post-metadata">

**Author:** ![SAO](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sao/32/16036_2.png) [@SAO](https://discourse.slicer.org/u/SAO)\
**Post date:** [November 5, 2022, 6:10am UTC](https://discourse.slicer.org/t/a-problem-with-using-spharm-pdm-generator/25668/3 "2022-11-05T06:10:49Z")

</div>

Hi @wael_telha

I think SPHARM-PDM will only accept VTK file of models (with no gaps). For consistency between the models, and to make sure there is no gaps in the models, you can use data-importer module (in SlicerSALT). **This module should be helpful for checking the models, before running SPHARM-PDM.**

N.B.:  
After trimming the condyle, the model will have a gap (that need to be covered before exporting to SlicerSALT). **In 3D slicer, you need to cover the exposed-region of the models (so the model does not have any gap).**

I hope this be helpful.

Regards,  
Sultan

---

<div class="post-metadata">

**Author:** ![wael\_telha](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/wael_telha/32/16914_2.png) [@wael\_telha](https://discourse.slicer.org/u/wael_telha)\
**Post date:** [November 14, 2022, 1:13pm UTC](https://discourse.slicer.org/t/a-problem-with-using-spharm-pdm-generator/25668/4 "2022-11-14T13:13:43Z")

</div>

I am really grateful to you  
thanks a million the problem was solved accordingly and things went then too smooth

---

<div class="post-metadata">

**Author:** ![SAO](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sao/32/16036_2.png) [@SAO](https://discourse.slicer.org/u/SAO)\
**Post date:** [November 14, 2022, 2:51pm UTC](https://discourse.slicer.org/t/a-problem-with-using-spharm-pdm-generator/25668/5 "2022-11-14T14:51:39Z")

</div>

I am glad that the problem was solved.  
All the best @wael_telha
