# Removing "Closed Surface" from seg.nrrd image header Line: Segmentation\_ContainedRepresentationNames

**URL:** <https://discourse.slicer.org/t/removing-closed-surface-from-seg-nrrd-image-header-line-segmentation-containedrepresentationnames/28987>\
**Category:** Feature requests\
**Tags:** nrrd\
**Created:** [April 18, 2023, 3:56pm UTC](https://discourse.slicer.org/t/removing-closed-surface-from-seg-nrrd-image-header-line-segmentation-containedrepresentationnames/28987 "2023-04-18T15:56:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joshua\_Binswanger](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/joshua_binswanger/32/65531_2.png) [@Joshua\_Binswanger](https://discourse.slicer.org/u/Joshua_Binswanger)\
**Post date:** [April 18, 2023, 3:56pm UTC](https://discourse.slicer.org/t/removing-closed-surface-from-seg-nrrd-image-header-line-segmentation-containedrepresentationnames/28987/1 "2023-04-18T15:56:34Z")

</div>

Removing or giving the option to bypass “Closed Surface” Representation of Segmentations in the image header of seg.nrrd files on the line “Segmentation\_ContainedRepresentationNames”

The Corresponding Line in the Header is:  
Segmentation\_ContainedRepresentationNames:=Binary labelmap|Closed surface|

Like this if you save a file with Closed Surface Representation active, you can bypass them on loading it a new. If you can’t somtimes the file is impossible to load or takes a long time. this would allow for a workaround.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [June 9, 2023, 10:51pm UTC](https://discourse.slicer.org/t/removing-closed-surface-from-seg-nrrd-image-header-line-segmentation-containedrepresentationnames/28987/2 "2023-06-09T22:51:13Z")

</div>

This has really bothered me too. In fact, in my local build I have changed the code so that this flag is ignored. We have discussed it at developer meetings but haven’t reached agreement yet on the best behavior. I would prefer to disable this feature completely, but another option would be to provide a UI option to disable. it Yet another option would be to put building of surface models in a separate, cancelable thread, like the legacy Model Maker so that the model building time won’t make the application hang. Putting the lablemap to surface model converter in a separate thread (basically into a CLI) would also help the workflow for people who leave 3D on when editing in the Segment Editor and then get slow update times.
