forked from youen/assembly_handbook
Added code to increase near/far distance during rendering to avoid cutting objects
This commit is contained in:
parent
46698319f6
commit
cbf1d1b275
@ -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…
Reference in New Issue
Block a user