From cbf1d1b2759fba79e02e3ea4f19546f548f073c7 Mon Sep 17 00:00:00 2001 From: Youen Date: Sun, 4 Feb 2024 16:08:05 +0100 Subject: [PATCH] Added code to increase near/far distance during rendering to avoid cutting objects --- ahb_raster_view.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ahb_raster_view.py b/ahb_raster_view.py index 7b3fcfa..d6b9668 100644 --- a/ahb_raster_view.py +++ b/ahb_raster_view.py @@ -264,6 +264,9 @@ class RasterView: tmp_doc_view.fitAll() tmp_doc.removeObject(viewVolumeLink.Name) sceneGroup.ViewObject.Visibility = True + print_verbose("Near=" + str(cam.nearDistance.getValue()) + ", far="+str(cam.farDistance.getValue())) + cam.nearDistance.setValue(cam.nearDistance.getValue() - 1000) + cam.farDistance.setValue(cam.farDistance.getValue() + 1000) viewVolume = cam.getViewVolume(0.0) self.image_view.Assembly_handbook_ViewVolumeWidth = viewVolume.getWidth()