lazy5f edited this page Mar 3, 2017 · 1 revision

Tutorials

  • PyQt tutorial (for action games)

vtk & numpy

  • Building polydata (vertices, lines, polygons, triangle strips)

    P = vtk.vtkPoints()
    P.SetData(dsa.numpyTovtkDataArray(np.array([(0, 0, 0), (0, 1, 0), (0, 0, 1)])))
    C = vtk.vtkCellArray()
    C.InsertNextCell(P.GetNumberOfPoints(), range(P.GetNumberOfPoints()))
    x = vtk.vtkPolyData()
    x.SetPoints(P)
    x.SetVerts(C)
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.