actor = vtk.vtkActor() actor.SetMapper(mapper) actor.GetProperty().EdgeVisibilityOn(); graphics.renderer.AddActor(actor) ''' #graphics.add_graphics_geometry(mesh.surface, [0.8, 0.8, 0.8], wire=True) graphics.add_graphics_geometry(mesh.surface, [0.8, 0.8, 0.8], wire=False, edges=True) graphics.add_graphics_geometry(mesh.area_surface, [1.0, 0.0, 0.0]) color = [1.0, 0.0, 0.0] radius = 1.0 size = 10 for pt in mesh.failed_area_check_list: #graphics.add_sphere(pt, color, radius) graphics.add_markers([pt], color, size) ## Show faces with the number of cells. ''' if params.filter_faces: mesh.filter_faces(params.filter_faces) show_wire = True else: show_wire = False if params.show_edges: mesh.show_edges() if params.show_faces: mesh.show_faces()