Skip to content

Commit 58e52a1

Browse files
committed
test: Add testing of viewup and clipping_range
1 parent f1db8e3 commit 58e52a1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_vis.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,14 @@ def test_camera_position(wp, patch_vtk):
218218
show(wp, position=(0, 0, 1), focus=(0, 0.1, 0))
219219
show(wp, focus=(0, 0.1, 0))
220220
show(wp, position=(0, 0, 1))
221+
222+
# Specify Z up
223+
show(wp, viewup=(0, 0, 1), position=(0, -1, 0), focus=(0, 0.1, 0))
224+
show(wp, focus=(0, 0.1, 0))
225+
show(wp, position=(0, -1, 0))
226+
show(wp, viewup=(0, 0, 1))
227+
228+
229+
def test_frustrum_clipping_range(wp, patch_vtk):
230+
231+
show(wp, zoom=2.0, clipping_range=(1, 100))

0 commit comments

Comments
 (0)