From 4a53fe139ef557994b668304062e1befa92e29fb Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Thu, 19 May 2011 18:13:15 +0000 Subject: [PATCH] ENH: Improved support gpu raycasting --- invesalius/data/volume.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/invesalius/data/volume.py b/invesalius/data/volume.py index f1b7aea..31272d8 100755 --- a/invesalius/data/volume.py +++ b/invesalius/data/volume.py @@ -420,7 +420,8 @@ class Volume(): self.volume_properties.SetSpecularPower(shading['specularPower']) def SetTypeRaycasting(self): - if self.volume_mapper.IsA("vtkFixedPointVolumeRayCastMapper"): + if self.volume_mapper.IsA("vtkFixedPointVolumeRayCastMapper") or self.volume_mapper.IsA("vtkGPUVolumeRayCastMapper"): + if self.config.get('MIP', False): self.volume_mapper.SetBlendModeToMaximumIntensity() else: -- libgit2 0.21.2