# Bugs with model convert to segment

**URL:** <https://discourse.slicer.org/t/bugs-with-model-convert-to-segment/25834>\
**Category:** Development\
**Created:** [October 22, 2022, 2:14am UTC](https://discourse.slicer.org/t/bugs-with-model-convert-to-segment/25834 "2022-10-22T02:14:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [October 22, 2022, 2:14am UTC](https://discourse.slicer.org/t/bugs-with-model-convert-to-segment/25834/1 "2022-10-22T02:14:51Z")

</div>

i found a model below

> **[test.mrb](https://www.dropbox.com/s/xrocty5wi0yffbb/test.mrb?dl=0)**
>
> Shared with Dropbox

when i change use command tool button [Convert model to segmentation node]  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/e/3e8cef3f297bd97fa740a0c9846b88bc95262e77.png)  
i convert the model to segment,it’s well displayed with both model and segmentations  
then i save the scene as .mrb file  
when i reload the .mrb file , the model displayed well , but the segmentations can’t display,the data seems empty  
both model and segmentation can’t display on slice panel

---

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [October 22, 2022, 2:15am UTC](https://discourse.slicer.org/t/bugs-with-model-convert-to-segment/25834/2 "2022-10-22T02:15:45Z")

</div>

the version 4.11 and 5.02 both has the problem

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 24, 2022, 2:11pm UTC](https://discourse.slicer.org/t/bugs-with-model-convert-to-segment/25834/3 "2022-10-24T14:11:26Z")

</div>

If I understand well, based on your description, this is not an issue with conversion but with save/load. Please confirm that converting model to segmentation works. Can you reproduce it with data available in Slicer? (For example doing a very simple segmentation on a sample volume, convert it to model and then back)

---

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [October 25, 2022, 12:59am UTC](https://discourse.slicer.org/t/bugs-with-model-convert-to-segment/25834/4 "2022-10-25T00:59:44Z")

</div>

thank your Pinter,thank you for replay.  
the origin operate on slicer is fine.  
the model is generated by code by vtkPolyData

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/9/a9309593eca83a19f576a07c95b3dcf045a09b1a.png)  
when the model is changed to segmentation , the segmentation can’t save/load , can’t operator on most segmentation Effect.

---

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [October 25, 2022, 3:26am UTC](https://discourse.slicer.org/t/bugs-with-model-convert-to-segment/25834/5 "2022-10-25T03:26:35Z")

</div>

finaly,i found vtkLineSource convert to segmentation has the save/load bug.
