def vtk_points(points, deep=True):
    """ Convert numpy points to a vtkPoints object """
    if not points.flags['C_CONTIGUOUS']:
        points = np.ascontiguousarray(points)
    vtkpts = vtk.vtkPoints()
    vtkpts.SetData(numpy_to_vtk(points, deep=deep))
    return vtkpts
def vtk_points ( points , deep = True ) : if not points . flags [ 'C_CONTIGUOUS' ] : points = np . ascontiguousarray ( points ) vtkpts = vtk . vtkPoints ( ) vtkpts . SetData ( numpy_to_vtk ( points , deep = deep ) ) return vtkpts
Convert numpy points to a vtkPoints object