EdgeVisibilityOn producing wrong result
I would like to understand why the back edges of the cells are shown when the edges visibility of the grid is on (EdgesVisibilityOn
). This problem does not occur when I set the grid representation to wireframe (SetRepresentationToWireframe
).
EdgeVisibilityOn | SetRepresentationToWireframe |
---|---|
In EdgeVisibilityOn
:
actor = vtk.vtkActor()
actor.SetMapper(mapper)
actor.GetProperty().EdgeVisibilityOn()
renderer = vtk.vtkRenderer()
renderer.AddActor(actor)
In SetRepresentationToWireframe
:
actor = vtk.vtkActor()
actor.SetMapper(mapper)
actor2 = vtk.vtkActor()
actor2.SetMapper(mapper)
actor2.GetProperty().SetRepresentationToWireframe()
actor2.GetProperty().SetColor(0, 0, 0)
renderer = vtk.vtkRenderer()
renderer.AddActor(actor)
renderer.AddActor(actor2)