Wed, 03/04/2009 - 12:20
Forums:
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?
Wed, 03/04/2009 - 23:10
Hi Marek,
You might want to use V3d_PerspectiveView. It already provides some predefined settings.
Roman
---
opencascade.blogspot.com - blog on Open CASCADE
Thu, 03/05/2009 - 18:58
Thanks for help. It switching between orthograpic view and perspective view now works fine.