Commit 2fa9bf619a956a1c7fc195181065fb1e3a12e1d4
1 parent
19a968dc
Exists in
vtk6
Showing measures with vtk6
Showing
1 changed file
with
7 additions
and
5 deletions
Show diff stats
invesalius/data/measures.py
... | ... | @@ -341,8 +341,8 @@ class CrossPointRepresentation(object): |
341 | 341 | sv.SetPoint2(p4) |
342 | 342 | |
343 | 343 | cruz = vtk.vtkAppendPolyData() |
344 | - cruz.AddInput(sv.GetOutput()) | |
345 | - cruz.AddInput(sh.GetOutput()) | |
344 | + cruz.AddInputData(sv.GetOutput()) | |
345 | + cruz.AddInputData(sh.GetOutput()) | |
346 | 346 | |
347 | 347 | c = vtk.vtkCoordinate() |
348 | 348 | c.SetCoordinateSystemToWorld() |
... | ... | @@ -563,9 +563,11 @@ class AngularMeasure(object): |
563 | 563 | arc = self.DrawArc() |
564 | 564 | |
565 | 565 | line = vtk.vtkAppendPolyData() |
566 | - line.AddInput(line1.GetOutput()) | |
567 | - line.AddInput(line2.GetOutput()) | |
568 | - line.AddInput(arc.GetOutput()) | |
566 | + line.AddInputConnection(line1.GetOutputPort()) | |
567 | + line.AddInputConnection(line2.GetOutputPort()) | |
568 | + line.AddInputConnection(arc.GetOutputPort()) | |
569 | + | |
570 | + print line | |
569 | 571 | |
570 | 572 | c = vtk.vtkCoordinate() |
571 | 573 | c.SetCoordinateSystemToWorld() | ... | ... |