From aa29d1f15be89a5c7e8940185a1f81c9d9bfcf23 Mon Sep 17 00:00:00 2001 From: Bane Sullivan Date: Mon, 20 Jan 2020 16:47:56 -0700 Subject: [PATCH] Remove duplicate code (#551) * Remove duplicate code * Remove more duplicated code! --- pyvista/plotting/plotting.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pyvista/plotting/plotting.py b/pyvista/plotting/plotting.py index 541097e0d6..74597a3062 100644 --- a/pyvista/plotting/plotting.py +++ b/pyvista/plotting/plotting.py @@ -1003,16 +1003,6 @@ def add_mesh(self, mesh, color=None, style=None, scalars=None, if mesh.n_points < 1: raise RuntimeError('Empty meshes cannot be plotted. Input mesh has zero points.') - # set main values - self.mesh = mesh - self.mapper = make_mapper(vtk.vtkDataSetMapper) - self.mapper.SetInputData(self.mesh) - if isinstance(scalars, str): - self.mapper.SetArrayName(scalars) - - actor, prop = self.add_actor(self.mapper, - reset_camera=reset_camera, - name=name, loc=loc, culling=culling) # Try to plot something if no preference given if scalars is None and color is None and texture is None: