Added code to increase near/far distance during rendering to avoid cutting objects

This commit is contained in:
Youen 2024-02-04 16:08:05 +01:00
parent 46698319f6
commit cbf1d1b275

View File

@ -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()