diff --git a/vtkm/rendering/MapperWireframer.cxx b/vtkm/rendering/MapperWireframer.cxx index 8df842141..ae3dda51d 100644 --- a/vtkm/rendering/MapperWireframer.cxx +++ b/vtkm/rendering/MapperWireframer.cxx @@ -251,6 +251,7 @@ void MapperWireframer::RenderCells(const vtkm::cont::DynamicCellSet& inCellSet, vtkm::cont::DynamicCellSet cellSet = inCellSet; bool is1D = cellSet.IsSameType(vtkm::cont::CellSetStructured<1>()); + bool is2D = cellSet.IsSameType(vtkm::cont::CellSetStructured<2>()); vtkm::cont::CoordinateSystem actualCoords = coords; vtkm::cont::Field actualField = inScalarField; @@ -289,6 +290,7 @@ void MapperWireframer::RenderCells(const vtkm::cont::DynamicCellSet& inCellSet, vtkm::cont::CellSetSingleType<> newCellSet; newCellSet.Fill(newCoords.GetNumberOfValues(), vtkm::CELL_SHAPE_LINE, 2, conn); + cellSet = vtkm::cont::DynamicCellSet(newCellSet); } bool isLines = false; @@ -301,7 +303,7 @@ void MapperWireframer::RenderCells(const vtkm::cont::DynamicCellSet& inCellSet, isLines = singleType.GetCellShape(0) == vtkm::CELL_SHAPE_LINE; } - bool doExternalFaces = !(this->Internals->ShowInternalZones) && !isLines && !is1D; + bool doExternalFaces = !(this->Internals->ShowInternalZones) && !isLines && !is1D && !is2D; if (doExternalFaces) { // If internal zones are to be hidden, the number of edges processed can be reduced by