(pt1, pt2)
| 27 | |
| 28 | |
| 29 | def buildPolyDataLine(pt1, pt2): |
| 30 | pd = vtkPolyData() |
| 31 | |
| 32 | pts = vtkPoints() |
| 33 | pts.InsertNextPoint(pt1) |
| 34 | pts.InsertNextPoint(pt2) |
| 35 | |
| 36 | pd.SetPoints(pts) |
| 37 | |
| 38 | lines = vtkCellArray() |
| 39 | lines.InsertNextCell(2) |
| 40 | lines.InsertCellPoint(0) |
| 41 | lines.InsertCellPoint(1) |
| 42 | |
| 43 | pd.SetLines(lines) |
| 44 | |
| 45 | return pd |
| 46 | |
| 47 | |
| 48 | def buildPolyDataItemMixed(): |
no test coverage detected