From 64b46b6ef64227e181e74bf4b31d69ff6cc808aa Mon Sep 17 00:00:00 2001
From: Joshua Steer <Joshua.Steer@soton.ac.uk>
Date: Mon, 16 Apr 2018 13:40:42 +0100
Subject: [PATCH] Placed Gouraud shading in more logical places

---
 AmpScan/ampVis.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/AmpScan/ampVis.py b/AmpScan/ampVis.py
index d5dbfc7..b29f67c 100644
--- a/AmpScan/ampVis.py
+++ b/AmpScan/ampVis.py
@@ -266,7 +266,6 @@ class visMixin(object):
             if CMap is not None:
                 self.setRect(data['values'])
                 self.setCMap(CMap, bands)
-            self.GetProperty().SetInterpolationToGouraud()
             self.Mapper = vtk.vtkPolyDataMapper()
             self.Mapper.SetInputData(self.mesh)
             if CMap is not None:
@@ -291,6 +290,7 @@ class visMixin(object):
             self.norm.SetFeatureAngle(30.0)
             self.norm.Update()
             self.mesh.DeepCopy(self.norm.GetOutput())
+            self.GetProperty().SetInterpolationToGouraud()
 
         def setRect(self, rect):
             self.scalars = numpy_support.numpy_to_vtk(rect, deep=1)
-- 
GitLab