director.vtkNumpy module

director.vtkNumpy.addNumpyToVtk(dataObj, numpyArray, arrayName)[source]
director.vtkNumpy.getNumpyFromVtk(dataObj, arrayName='Points')[source]
director.vtkNumpy.getVtkFromNumpy(numpyArray)[source]
director.vtkNumpy.getVtkPointsFromNumpy(numpyArray)[source]
director.vtkNumpy.getVtkPolyDataFromNumpyPoints(points)[source]

Given an Nx3 array of xyz points Return a new vtkPolyData containing points and vertex cells. If the input points is not float64 it will be converted first.

director.vtkNumpy.numpyToPolyData(pts, pointData=None, createVertexCells=False)[source]