MCPcopy
hub / github.com/CadQuery/cadquery / test_show

Function test_show

tests/test_vis.py:108–140  ·  view source on GitHub ↗
(wp, assy, sk, patch_vtk)

Source from the content-addressed store, hash-verified

106
107
108def 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
143def test_show_nurbs(patch_vtk):

Callers

nothing calls this directly

Calls 4

showFunction · 0.90
VectorClass · 0.90
LocationClass · 0.90
valMethod · 0.45

Tested by

no test coverage detected