Hi all,



is it possible to use perspective view in  PythonOCC 0.5 with wx backend? I 
tried to change the view to perspective, but I couldnt get it working. 
Bellow is the code I used.




##########################################################

from OCC.Display.SimpleGui import *




set_backend("wx")




display, start_display, add_menu, add_function_to_menu = init_display()




def simple_test(event=None):

    display.Test()

  

def perspective_test(event=None):

    display.Test()

    display.SetOrthographic(False)




    wh = display.GetView()

    w = wh.GetObject()

    w.SetFocale(1)

    w.Update()

      

add_menu("simple test")

add_function_to_menu("simple test",simple_test)

add_function_to_menu("simple test",perspective_test)




start_display()

##########################################################





I think the perspective_test should produce perspective view, but it doesnt.





Best regards,

Tomas Letal
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to