code: def create_actor_delaunay(pts, color, **kwargs):
      
      # Keyword arguments
      array_name = kwargs.get('name', "")
      array_index = kwargs.get('index', 0)
      use_delaunay3d = kwargs.get("d3d", False)
  
      # Create points
      points = vtk.vtkPoints()
      points.SetData(pts)
  
      # Create a PolyData object and add points
      polydata = vtk.vtkPolyData()
      polydata.SetPoints(points)
  
      # Apply Delaunay triangulation on the poly data object
      triangulation = vtk.vtkDelaunay3D() if use_delaunay3d else vtk.vtkDelaunay2D()
      triangulation.SetInputData(polydata)
  
      # Map triangulated surface to the graphics primitives
      mapper = vtk.vtkDataSetMapper()
      mapper.SetInputConnection(triangulation.GetOutputPort())
      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)
  
      # Return the actor
      return actor
docs: Creates a VTK actor for rendering triangulated plots using Delaunay triangulation.
  
      Keyword Arguments:
          * ``d3d``: flag to choose between Delaunay2D (``False``) and Delaunay3D (``True``). *Default: False*
  
      :param pts: points
      :type pts: vtkFloatArray
      :param color: actor color
      :type color: list
      :return: a VTK actor
      :rtype: vtkActor