# Problem merging SemiLMPatches

**URL:** <https://discourse.slicer.org/t/problem-merging-semilmpatches/37971>\
**Category:** SlicerMorph\
**Tags:** markups-fiducials\
**Created:** [August 21, 2024, 2:19am UTC](https://discourse.slicer.org/t/problem-merging-semilmpatches/37971 "2024-08-21T02:19:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zifangx](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zifangx/32/77050_2.png) [@zifangx](https://discourse.slicer.org/u/zifangx)\
**Post date:** [August 21, 2024, 2:19am UTC](https://discourse.slicer.org/t/problem-merging-semilmpatches/37971/1 "2024-08-21T02:19:15Z")

</div>

Hi, I am trying to apply surface landmarks across a region of interest in a lizard cranium, utilizing the CreateSemiLMPatches module of SlicerMorph. When I try to merge the SemiLMPatches (screenshot1) into one single node, some of the merged nodes (specifically, those generated along the edges of the triangular patches, circled red in screenshot2) “sink in” to the underside of the mesh. Is there any way to correct this behaviour? Do I need to manually adjust these points to get them back to the mesh surface? I’m looking to apply SemiLMPatches onto many other specimens, so ideally would like to reduce the amount of manual adjustment if possible.  
I’d really appreciate any insights, thank you in advance!

 ![screenshot1.PNG](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/8/88651f05e35684ef4fe3327844d6b3b555576c65.jpeg)  
 ![screenshot2.PNG](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/a/9aea28723106338bfeed1021a6ed0832a99f4b98.jpeg)

---

<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:** [August 21, 2024, 8:28pm UTC](https://discourse.slicer.org/t/problem-merging-semilmpatches/37971/2 "2024-08-21T20:28:02Z")

</div>

> [@zifangx](#):
>
> “sink in” to the underside of the mesh.

This is controlled by the projection parameter of the module. Unfortunately for us, microCT derived surface models has an internal surface. So if the points are projected a little too much along the normal, sometimes it gets snapped by the internal surface. Expand the Advanced options, and try incrementally reducing the projection value (or disable it).

Also you may want to give our new module PlaceLandmarkGrid, which eventually replace the module you are using. You can draw arbitrary patches (using 4 control points) and sample semi-landmarks inside it. It is still work in progress, so it is a good time to give feedback as well.

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

---

<div class="post-metadata">

**Author:** ![zifangx](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zifangx/32/77050_2.png) [@zifangx](https://discourse.slicer.org/u/zifangx)\
**Post date:** [August 22, 2024, 8:54pm UTC](https://discourse.slicer.org/t/problem-merging-semilmpatches/37971/3 "2024-08-22T20:54:41Z")

</div>

Thank you for your reply!  
Unfortunately, I had no luck playing around with the two projection parameters with different combinations. The triangular patches themselves were not a problem, it was when I hit the “merge highlighted nodes” which, I believe, generates additional points along the edges of the triangle, those points are acting funky, regardless of what parameter combinations I tried.  
And thanks for the suggestion! I’ll give the new module a try!

---

<div class="post-metadata">

**Author:** ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Post date:** [August 26, 2024, 9:17pm UTC](https://discourse.slicer.org/t/problem-merging-semilmpatches/37971/4 "2024-08-26T21:17:11Z")

</div>

Hi @zifangx is it possible for you to share a model with the landmark patches so I can give this a try?

---

<div class="post-metadata">

**Author:** ![zifangx](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zifangx/32/77050_2.png) [@zifangx](https://discourse.slicer.org/u/zifangx)\
**Post date:** [October 4, 2024, 3:29pm UTC](https://discourse.slicer.org/t/problem-merging-semilmpatches/37971/5 "2024-10-04T15:29:40Z")

</div>

Hi Sara,

Sorry for the late reply but yes, absolutely! I’ll send you a link via message.
