# vtkMRMLModelDisplayNode (00000267D9D32A80): SetSliceIntersectionVisibility method is deprecated, please use SetVisibility2D instead

**URL:** <https://discourse.slicer.org/t/vtkmrmlmodeldisplaynode-00000267d9d32a80-setsliceintersectionvisibility-method-is-deprecated-please-use-setvisibility2d-instead/31392>\
**Category:** Support\
**Created:** [August 28, 2023, 1:06am UTC](https://discourse.slicer.org/t/vtkmrmlmodeldisplaynode-00000267d9d32a80-setsliceintersectionvisibility-method-is-deprecated-please-use-setvisibility2d-instead/31392 "2023-08-28T01:06:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dex2046](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dex2046/32/65593_2.png) [@Dex2046](https://discourse.slicer.org/u/Dex2046)\
**Post date:** [August 28, 2023, 1:06am UTC](https://discourse.slicer.org/t/vtkmrmlmodeldisplaynode-00000267d9d32a80-setsliceintersectionvisibility-method-is-deprecated-please-use-setvisibility2d-instead/31392/1 "2023-08-28T01:06:16Z")

</div>

Call for help

I use must-segmentator to create a VOI segmentation in liver, I got the warning message like this

```auto
[VTK] Warning: In vtkMRMLDisplayNode.cxx, line 996

[VTK] vtkMRMLModelDisplayNode (00000267D9D32A80): SetSliceIntersectionVisibility method is deprecated, please use SetVisibility2D instead

[Qt] int __cdecl qSlicerSubjectHierarchySegmentsPlugin::getDisplayVisibility(__int64) const : No display node for segmentation

[Qt] int __cdecl qSlicerSubjectHierarchySegmentsPlugin::getDisplayVisibility(__int64) const : No display node for segmentation

[Qt] int __cdecl qSlicerSubjectHierarchySegmentsPlugin::getDisplayVisibility(__int64) const : No display node for segmentation

[Qt] int __cdecl qSlicerSubjectHierarchySegmentsPlugin::getDisplayVisibility(__int64) const : No display node for segmentation

[VTK] Warning: In vtkMRMLSegmentationNode.h, line 228

[VTK] vtkMRMLSegmentationNode (00000267D0BEA100): vtkSegmentation::SetMasterRepresentationToClosedSurface() method is deprecated, please use SetSourceRepresentationToClosedSurface method instead

```

however, I got a sphere segmentation, but it can not be found in further calculation

How could I solve this problem? thank you all.

---

<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:** [August 28, 2023, 9:46am UTC](https://discourse.slicer.org/t/vtkmrmlmodeldisplaynode-00000267d9d32a80-setsliceintersectionvisibility-method-is-deprecated-please-use-setvisibility2d-instead/31392/2 "2023-08-28T09:46:36Z")

</div>

The first warning is probably the one that has been fixed very recently: [BUG: Fix deprecated function calls by cpinter · Pull Request #36 · SlicerIGT/SlicerMarkupsToModel · GitHub](https://github.com/SlicerIGT/SlicerMarkupsToModel/pull/36)

The ones to follow are from the segments plugin, maybe getting the visibility by the SH model is premature, but these are just warnings and have no effect on anything, so I haven’t considered it a priority.

The last error may come from your side as various functions have been deprecated (the word “master” was replaced with “source” in function names to make it more inclusive), but most of the usages have been updated as well. Again, no chance of indicating actual error.

---

<div class="post-metadata">

**Author:** ![Dex2046](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dex2046/32/65593_2.png) [@Dex2046](https://discourse.slicer.org/u/Dex2046)\
**Post date:** [August 29, 2023, 1:54am UTC](https://discourse.slicer.org/t/vtkmrmlmodeldisplaynode-00000267d9d32a80-setsliceintersectionvisibility-method-is-deprecated-please-use-setvisibility2d-instead/31392/3 "2023-08-29T01:54:29Z")

</div>

thank you~

just as you said, it is a different problem, this warning has nothing to do with the result.
