def array2vtkPoints(num_array, vtk_points=None):
    if vtk_points:
        points  = vtk_points
    else:
        points = vtk.vtkPoints()

    arr = numpy.asarray(num_array)
    assert len(arr.shape) == 2, "Points array must be 2 dimensional."
    assert arr.shape[1] == 3, "Incorrect shape: shape[1] must be 3."
    vtk_array = array2vtk(arr)
    points.SetData(vtk_array)
    return points
Returns a 301 or 302 redirect response with the reversed URL from the
dataset/ETHPy150Open enthought/mayavi/tvtk/array_handler.py/array2vtkPoints--crossover with--dataset/ETHPy150Open skibblenybbles/django-daydreamer/daydreamer/views/core/base.py/Core.redirect