def _generate_plane ( normal , origin ) : plane = vtk . vtkPlane ( ) plane . SetNormal ( normal [ 0 ] , normal [ 1 ] , normal [ 2 ] ) plane . SetOrigin ( origin [ 0 ] , origin [ 1 ] , origin [ 2 ] ) return plane
how to make a plane in vtk python
Returns a vtk . vtkPlane
def _generate_plane(normal, origin):
    """ Returns a vtk.vtkPlane """
    plane = vtk.vtkPlane()
    plane.SetNormal(normal[0], normal[1], normal[2])
    plane.SetOrigin(origin[0], origin[1], origin[2])
    return plane