Hi Tomas,
to me it looks like support for this would need to be implemented in
pythonocc/src/wrapper/Visualization/Display3d.cpp
something along the lines of replacing
myV3dView = myV3dViewer->CreateView();
with
myV3dViewer->DefaultPerspectiveView () ;
myV3dViewer->SetDefaultTypeOfView ( V3d_PERSPECTIVE ) ;
myV3dView = myV3dViewer->CreateView();
I tried this and when initializing the display I an see a perspective view on
the trihedron, however as soon as I display a geometry everythings back to
orthographic projection it seems. I would also like to be able to switch between
the projection methods. Has anyone successfully done this with PythonOCC ?
Best regards,
Mark
Not sure why this is the case. M
Am 13.09.2013 um 16:22 schrieb Tomáš Létal:
> Thank you very much!
>
> I thought there is a simple procedure to turn on the perspective and I just
> dont see it :). Yesterday, I was looking into the code of OCCViewer.py for
> something else and it didnt occured to me, that I could look at this method
> and see, that it is not implemented yet.
> It would be really cool to se things from different perspective :-D.
>
> Best regards,
> Tomas Letal
>
>
> ---------- Původní zpráva ----------
> Od: Marko <[email protected]>
> Datum: 13. 9. 2013
> Předmět: Re: [Pythonocc-users] perspective in PythonOCC 0.5
>
>
> Hi! It looks like this has not been implemented in pythonOCC's Display
> module - here's the corresponding source code:
>
> def SetOrthographic(self, _bool):
> [some docstring text]
> pass
>
> (see
> https://github.com/tpaviot/pythonocc/blob/master/src/addons/Display/OCCViewer.py
> )
>
> So the SetOrthographic method from pythonOCC doesn't do anything. You
> will have to directly use the functions provided by OpenCASCADE.
> (However, I can't help you with that)
>
> Note to the pythonOCC developers: I think this method should be
> removed. I was confused by it as well when I started using pythonOCC.
>
> _______________________________________________
> Pythonocc-users mailing list
> [email protected]
> https://mail.gna.org/listinfo/pythonocc-users
> _______________________________________________
> Pythonocc-users mailing list
> [email protected]
> https://mail.gna.org/listinfo/pythonocc-users
_______________________________________________
Pythonocc-users mailing list
[email protected]
https://mail.gna.org/listinfo/pythonocc-users