(pts, lines, color, **kwargs)
return actor
Creates a VTK actor for rendering quadrilateral plots.

    :param pts: points
    :type pts: vtkFloatArray
    :param lines: point connectivity information
    :type lines: vtkIntArray
    :param color: actor color
    :type color: list
    :return: a VTK actor
    :rtype: vtkActor
Creates a VTK actor for rendering quadrilateral plots.
Creates a VTK actor for rendering quadrilateral plots .
def create_actor_mesh(pts, lines, color, **kwargs):
    """ Creates a VTK actor for rendering quadrilateral plots.

    :param pts: points
    :type pts: vtkFloatArray
    :param lines: point connectivity information
    :type lines: vtkIntArray
    :param color: actor color
    :type color: list
    :return: a VTK actor
    :rtype: vtkActor
    """
    # Keyword arguments
    array_name = kwargs.get('name', "")
    array_index = kwargs.get('index', 0)
    line_width = kwargs.get('size', 0.5)

    # Create points
    points = vtk.vtkPoints()
    points.SetData(pts)

    # Create lines
    cells = vtk.vtkCellArray()
    for line in lines:
        pline = vtk.vtkPolyLine()
        pline.GetPointIds().SetNumberOfIds(5)
        for i in range(len(line)):
            pline.GetPointIds().SetId(i, line[i])
        pline.GetPointIds().SetId(4, line[0])
        cells.InsertNextCell(pline)

    # Create a PolyData object and add points & lines
    polydata = vtk.vtkPolyData()
    polydata.SetPoints(points)
    polydata.SetLines(cells)

    # Map poly data to the graphics primitives
    mapper = vtk.vtkPolyDataMapper()
    mapper.SetInputDataObject(polydata)
    mapper.SetArrayName(array_name)
    mapper.SetArrayId(array_index)

    # Create an actor and set its properties
    actor = vtk.vtkActor()
    actor.SetMapper(mapper)
    actor.GetProperty().SetColor(*color)
    actor.GetProperty().SetLineWidth(line_width)

    # Return the actor
    return actor
def create_actor_mesh ( pts , lines , color , * * kwargs ) : # Keyword arguments array_name = kwargs . get ( 'name' , "" ) array_index = kwargs . get ( 'index' , 0 ) line_width = kwargs . get ( 'size' , 0.5 ) # Create points points = vtk . vtkPoints ( ) points . SetData ( pts ) # Create lines cells = vtk . vtkCellArray ( ) for line in lines : pline = vtk . vtkPolyLine ( ) pline . GetPointIds ( ) . SetNumberOfIds ( 5 ) for i in range ( len ( line ) ) : pline . GetPointIds ( ) . SetId ( i , line [ i ] ) pline . GetPointIds ( ) . SetId ( 4 , line [ 0 ] ) cells . InsertNextCell ( pline ) # Create a PolyData object and add points & lines polydata = vtk . vtkPolyData ( ) polydata . SetPoints ( points ) polydata . SetLines ( cells ) # Map poly data to the graphics primitives mapper = vtk . vtkPolyDataMapper ( ) mapper . SetInputDataObject ( polydata ) mapper . SetArrayName ( array_name ) mapper . SetArrayId ( array_index ) # Create an actor and set its properties actor = vtk . vtkActor ( ) actor . SetMapper ( mapper ) actor . GetProperty ( ) . SetColor ( * color ) actor . GetProperty ( ) . SetLineWidth ( line_width ) # Return the actor return actor