Talk:VTK/Examples/Python

From KitwarePublic
< Talk:VTK‎ | Examples
Revision as of 18:36, 23 April 2015 by Sxg125 (talk | contribs) (abc)
Jump to navigationJump to search
# Establish the specified edges using CellArray
   line = vtk.vtkCellArray()
   line.Allocate(8)
   line.InsertNextCell(2)
   line.InsertCellPoint(0)
   line.InsertCellPoint(1)
   line.InsertNextCell(2)
   line.InsertCellPoint(0)
   line.InsertCellPoint(2)
   line.InsertNextCell(2)
   line.InsertCellPoint(2)
   line.InsertCellPoint(3)
   line.InsertNextCell(2)
   line.InsertCellPoint(2)
   line.InsertCellPoint(4)
   line.InsertNextCell(2)
   line.InsertCellPoint(3)
   line.InsertCellPoint(4)
   line.InsertNextCell(2)
   line.InsertCellPoint(3)
   line.InsertCellPoint(5)
   line.InsertNextCell(2)
   line.InsertCellPoint(4)
   line.InsertCellPoint(5)
   line.InsertNextCell(2)
   line.InsertCellPoint(4)
   line.InsertCellPoint(6)