# "Keep only whole cells when clipping" not saved in mrml scene file

**URL:** <https://discourse.slicer.org/t/keep-only-whole-cells-when-clipping-not-saved-in-mrml-scene-file/20261>\
**Category:** Development\
**Created:** [October 20, 2021, 12:02pm UTC](https://discourse.slicer.org/t/keep-only-whole-cells-when-clipping-not-saved-in-mrml-scene-file/20261 "2021-10-20T12:02:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [October 20, 2021, 12:02pm UTC](https://discourse.slicer.org/t/keep-only-whole-cells-when-clipping-not-saved-in-mrml-scene-file/20261/1 "2021-10-20T12:02:11Z")

</div>

This is somewhat relevant to [Clipping of models is too slow](https://discourse.slicer.org/t/clipping-of-models-is-too-slow/8788).

Enabling “Keep only whole cells when clipping” speeds up the clipping a lot for complex models. This setting, however, is not saved in the scene file, making scene loading very slow for complex projects saved with clipping enabled.

Is there a way to add this? Happy to give it a shot if someone could point me in the right direction on where to start.

Thanks!

-Hollister

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [October 20, 2021, 12:08pm UTC](https://discourse.slicer.org/t/keep-only-whole-cells-when-clipping-not-saved-in-mrml-scene-file/20261/2 "2021-10-20T12:08:29Z")

</div>

Oops, make that [Window resize with model clipping enabled is extremely slow](https://discourse.slicer.org/t/window-resize-with-model-clipping-enabled-is-extremely-slow/20208) as the more relevant post. Sorry about that.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 21, 2021, 4:17am UTC](https://discourse.slicer.org/t/keep-only-whole-cells-when-clipping-not-saved-in-mrml-scene-file/20261/3 "2021-10-21T04:17:06Z")

</div>

Good catch. I’ve fixed the scene reader now. The fix will be available in the Slicer Preview Release that you download on Friday or later.

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [October 21, 2021, 11:55am UTC](https://discourse.slicer.org/t/keep-only-whole-cells-when-clipping-not-saved-in-mrml-scene-file/20261/4 "2021-10-21T11:55:29Z")

</div>

Awesome - thanks a lot!!!
