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

Function test_camera_position

tests/test_vis.py:242–252  ·  view source on GitHub ↗
(wp, patch_vtk)

Source from the content-addressed store, hash-verified

240
241
242def test_camera_position(wp, patch_vtk):
243
244 show(wp, position=(0, 0, 1), focus=(0, 0.1, 0))
245 show(wp, focus=(0, 0.1, 0))
246 show(wp, position=(0, 0, 1))
247
248 # Specify Z up
249 show(wp, viewup=(0, 0, 1), position=(0, -1, 0), focus=(0, 0.1, 0))
250 show(wp, focus=(0, 0.1, 0))
251 show(wp, position=(0, -1, 0))
252 show(wp, viewup=(0, 0, 1))
253
254
255def test_frustrum_clipping_range(wp, patch_vtk):

Callers

nothing calls this directly

Calls 1

showFunction · 0.90

Tested by

no test coverage detected