DiscussionsIssue archiveOther usage issues

Archived discussion

Changeing view projection

Other usage issuesWed, 03/04/2009 - 12:202 replies

Browse this forum
QuestionAuthor

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?

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

Hi Marek,

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

Commenter-1
---
opencascade.blogspot.com - blog on Open CASCADE

02Author

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