Skip to content
Snippets Groups Projects
Commit 5f3e2920 authored by Andrew Maclean's avatar Andrew Maclean
Browse files

Fix error in DrawViewportBorder.md

parent 879717e5
No related branches found
No related tags found
1 merge request!343Classes in python not in pythonic api 05
......@@ -324,11 +324,8 @@ def draw_viewport_border(renderer, border, color=(0, 0, 0), line_width=2):
lines = vtkPolyLine()
lines.point_ids.SetNumberOfIds(number_of_points)
print(lines.point_ids.GetNumberOfIds())
for i in range(0, number_of_points):
lines.point_ids.SetId(i, i)
# lines.GetPointIds().SetId(i, i)
# lines.point_ids.id = (i, i)
lines.point_ids.id = (i, i)
cells = vtkCellArray()
cells.InsertNextCell(lines)
......
......@@ -68,7 +68,7 @@ def draw_viewport_border(renderer, border, color=(0, 0, 0), line_width=2):
i += 1
lines = vtkPolyLine()
lines.point_ids.number_of_ids = number_of_points
lines.point_ids.SetNumberOfIds(number_of_points)
for i in range(0, number_of_points):
lines.point_ids.id = (i, i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment