Reversed triangles in vtkPolyData created from points and cells

Hello,

Try to recompute the normals with the vtkPolyDataNormals filter:

    // Compute normals
    vtkSmartPointer<vtkPolyDataNormals> normals = vtkSmartPointer<vtkPolyDataNormals>::New();
    normals->SetInputData(mesh);
    normals->ComputePointNormalsOn();
    normals->ComputeCellNormalsOn();
    normals->Update();

Use the object returned by normals->GetOutput() or normals->GetOutputPort() depending on whatever the remainder of your pipeline code is.

best,

PC