Small adaptation to SlicedGeometry for SWIG compatibility
Summary:
Added a SWIG-guard to a non-parsed code part. Is ignored in
default case.
Test Plan: Compile it. Works. No real change.
Reviewers: O1 MITK Core!
Maniphest Tasks: T24046
Differential Revision: https://phabricator.mitk.org/D106