code/utils/vtklib.py
def slicedataset(dataset, point, normal):
    """Slice through a vtkDataSet object with a plane defined by point and
    normal."""
    cutplane = vtk.vtkPlane()
    cutplane.SetOrigin(point)
    cutplane.SetNormal(normal)
    cutter = vtk.vtkCutter()
    cutter.SetInputData(dataset)
    cutter.SetCutFunction(cutplane)
    cutter.Update()
    return cutter.GetOutput()
Slice through a vtkDataSet object with a plane defined by point and
    normal.
Slice through a vtkDataSet object with a plane defined by point and
normal.
Slice through a vtkDataSet object with a plane defined by point and normal .
def slicedataset(dataset, point, normal):
    cutplane = vtk.vtkPlane()
    cutplane.SetOrigin(point)
    cutplane.SetNormal(normal)
    cutter = vtk.vtkCutter()
    cutter.SetInputData(dataset)
    cutter.SetCutFunction(cutplane)
    cutter.Update()
    return cutter.GetOutput()
def slicedataset ( dataset , point , normal ) : cutplane = vtk . vtkPlane ( ) cutplane . SetOrigin ( point ) cutplane . SetNormal ( normal ) cutter = vtk . vtkCutter ( ) cutter . SetInputData ( dataset ) cutter . SetCutFunction ( cutplane ) cutter . Update ( ) return cutter . GetOutput ( )
Slice through a vtkDataSet object with a plane defined by point and
normal.
Slice through a vtkDataSet object with a plane defined by point and normal .
"""Slice through a vtkDataSet object with a plane defined by point and
    normal."""
dataset
point
normal