Changeing view projection

Hi
Im trying to create my own control using OpenCascade.At the moment im trying to change, projection of view i want to set it perspectivical. My code is

OCVisual3d_View v3dView = view.View();
OCVisual3d_ViewMapping mapping = v3dView.ViewMapping();
mapping.SetProjection(OCVisual3d_TypeOfProjection.Visual3d_TOP_PERSPECTIVE);
viewer.Update();
view.Update();

type of projection have changed but view wasn't updated. Am I missing something?

Roman Lygin's picture

Hi Marek,

You might want to use V3d_PerspectiveView. It already provides some predefined settings.

Roman
---
opencascade.blogspot.com - blog on Open CASCADE

marek99's picture

Thanks for help. It switching between orthograpic view and perspective view now works fine.