| 106 | |
| 107 | |
| 108 | def test_show(wp, assy, sk, patch_vtk): |
| 109 | |
| 110 | # simple smoke test |
| 111 | show(wp) |
| 112 | show(wp.val()) |
| 113 | show(wp.val().wrapped) |
| 114 | show(assy) |
| 115 | show(sk) |
| 116 | show(wp, sk, assy, wp.val()) |
| 117 | show(Vector()) |
| 118 | show(Location()) |
| 119 | show([Vector, Vector, Location]) |
| 120 | show([wp, assy]) |
| 121 | show() |
| 122 | |
| 123 | # show with edges |
| 124 | show(wp, edges=True) |
| 125 | |
| 126 | show_object(wp) |
| 127 | show_object(wp.val()) |
| 128 | show_object(assy) |
| 129 | show_object(sk) |
| 130 | show_object(wp, sk, assy, wp.val()) |
| 131 | show_object() |
| 132 | |
| 133 | # for compatibility with CQ-editor |
| 134 | show_object(wp, "a") |
| 135 | |
| 136 | # for now a workaround to be compatible with more complicated CQ-editor invocations |
| 137 | show(1) |
| 138 | |
| 139 | # show a raw vtkProp |
| 140 | show(vtkAxesActor(), [vtkAnnotatedCubeActor()]) |
| 141 | |
| 142 | |
| 143 | def test_show_nurbs(patch_vtk): |