class_docstr: Algorithm to cast PointSet to PolyData.
  
  This is implemented with :func:`pyvista.PointSet.cast_to_polydata`.
docstr: Perform algorithm execution.
  
  Parameters
  ----------
  _request : vtk.vtkInformation
      Information associated with the request.
  inInfo : vtk.vtkInformationVector
      Information about the input data.
  outInfo : vtk.vtkInformationVector
      Information about the output data.
  
  Returns
  -------
  int
      1 when successful.
code: def RequestData(self, _request, inInfo, outInfo):
      """
      Perform algorithm execution.
  
      Parameters
      ----------
      _request : vtk.vtkInformation
          Information associated with the request.
      inInfo : vtk.vtkInformationVector
          Information about the input data.
      outInfo : vtk.vtkInformationVector
          Information about the output data.
  
      Returns
      -------
      int
          1 when successful.
      """
      try:
          inp = wrap(self.GetInputData(inInfo, 0, 0))
          out = self.GetOutputData(outInfo, 0)
          output = inp.cast_to_polydata(deep=False)
          out.ShallowCopy(output)
      except Exception as e:  # pragma: no cover
          traceback.print_exc()
          raise e
      return 1
  
imports: import traceback
  import numpy
  import pyvista
  from pyvista.core.errors import PyVistaPipelineError
  from pyvista.core.utilities.helpers import wrap
  from pyvista.plotting import _vtk
label_desc: Use image node_id 2 for calling the PointSetToPolyDataAlgorithm obj's underlying member method code with example usage: obj.RequestData(_request, inInfo, outInfo) and returns: int