replace 'viewer.core' with 'viewer.core()' in python tutorials. Use same API style like in C++ however other methods for multiple viewport support still do not have python bindings.

This commit is contained in:
Nico Brügel
2019-06-13 14:58:05 +02:00
parent 7162dbe428
commit 6787393cd1
18 changed files with 59 additions and 59 deletions
+2 -2
View File
@@ -35,11 +35,11 @@ def key_pressed(viewer, key, modifier):
# # If a mesh is already displayed, draw_mesh returns an error if the given V and
# # F have size different than the current ones
viewer.data().set_mesh(V1, F1)
viewer.core.align_camera_center(V1,F1)
viewer.core().align_camera_center(V1,F1)
elif key == ord('2'):
viewer.data().clear()
viewer.data().set_mesh(V2, F2)
viewer.core.align_camera_center(V2,F2)
viewer.core().align_camera_center(V2,F2)
return False