Have vertex normals filter not process datasets containing triangle strips. Resolves
@@ -134,6 +134,11 @@ avtVertexNormalsFilter::~avtVertexNormalsFilter()
// Re-integrated structured-grid specific normals calculation after
// fixing bug regarding VTK-8.
//
+// Kathleen Biagas, Wed Jul 31 11:21:38 PDT 2019
+// Since vtkVisItPolyDataNormals filter doesn't handle triangle strips,
+// and in fact removes them from the output, don't process the input if
+// they are present.
+//
// ****************************************************************************
avtDataRepresentation *
@@ -164,6 +169,10 @@ avtVertexNormalsFilter::ExecuteData(avtDataRepresentation *in_dr)
if (in_ds->GetDataObjectType() == VTK_POLY_DATA)
{
vtkPolyData *pd = (vtkPolyData *)in_ds;
+ // The polydata normals filter doesn't handle triangle strips, in fact
+ // it removes them, so don't process a dataset that contains them.
+ if (pd->GetNumberOfStrips() > 0)
+ return in_dr;
bool pointNormals = true;
if (atts.ValidActiveVariable())
