Lecture_3_Data Representation
第12~15页处,关于源代码
strip = vtkPolyData()
strip.SetPoints(points)
strip.SetStrips(cells)
map = vtkPolyDataMapper()
map.SetInput(strip)
应将SetInput(strip) 改为SetInputData(strip)
同时,对于
cells = vtkCellArray()
cells.InsertNextCell(8)
cells.InsertCellPoint(0)
cells.InsertCellPoint(1)
cells.InsertCellPoint(2)
cells.InsertCellPoint(3)
cells.InsertCellPoint(4)
cells.InsertCellPoint(5)
cells.InsertCellPoint(6)
cells.InsertCellPoint(7)
中的读取点的方式,为三点确定一个平面,然后以第一个点为起点,依次做出012, 123, 234….的平面