diff --git a/AmpScan/ampVis.py b/AmpScan/ampVis.py index d5dbfc7b0cf14707c3d699a4c28c817b3d840286..b29f67c724a672ded8fcf2160ab6c6474a09daea 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)