code: def Line(pointa=(-0.5, 0., 0.), pointb=(0.5, 0., 0.), resolution=1):
      
      if np.array(pointa).size != 3:
          raise TypeError('Point A must be a length three tuple of floats.')
      if np.array(pointb).size != 3:
          raise TypeError('Point B must be a length three tuple of floats.')
      src = vtk.vtkLineSource()
      src.SetPoint1(*pointa)
      src.SetPoint2(*pointb)
      src.SetResolution(resolution)
      src.Update()
      return vtki.wrap(src.GetOutput())
docs: Create a line
  
      Parameters
      ----------
      pointa : np.ndarray or list
          Location in [x, y, z].
  
      pointb : np.ndarray or list
          Location in [x, y, z].
  
      resolution : int
          number of pieces to divide line into