Browse Source

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

master
Youen 3 months ago
parent
commit
cbf1d1b275
  1. 3
      ahb_raster_view.py

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

Loading…
Cancel
Save