Unstructured Grid Edge Display Issue
We're seeing edge visibility display issues with this mesh in PyVista and ParaView: edge-issues.vtk
Originally reported here: https://github.com/pyansys/pydpf-core/issues/765
Something is going awry with Surface with Edges display in ParaView and the exact same issue is happening in VTK with SetEdgeVisibility(1)
for VTK
One workaround that looks better is to run Extract Edges and render that separately. Those lines have a nice uniform thickness. Since this works, it makes me think we can rule out any co-incident topology issues.
VTK code to reproduce the issue:
import vtk
reader = vtk.vtkDataSetReader()
reader.SetFileName("edge-issues.vtk")
mapper = vtk.vtkDataSetMapper()
output_port = reader.GetOutputPort()
mapper.SetInputConnection(output_port)
actor = vtk.vtkActor()
actor.SetMapper(mapper)
actor.GetProperty().SetEdgeVisibility(1)
ren = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
style = vtk.vtkInteractorStyleTrackballCamera()
renWin.AddRenderer(ren)
iren = vtk.vtkRenderWindowInteractor()
iren.SetRenderWindow(renWin)
iren.SetInteractorStyle(style)
ren.AddActor(actor)
iren.Initialize()
renWin.Render()
iren.Start()
I've circled a few areas where the edges of some QUAD cells are not visible at all:
I can't put my finger on what's going wrong here.