Forum archiveIssue archiveVisualization and 3D Viewer

Archived discussion

About V3d_View

Visualization and 3D ViewerThu, 02/03/2000 - 17:502 replies

Browse this forum
QuestionAuthor

We need for an operation the 4x4 Matrix of a V3d_View. In the CDL's I found this way:

TColStd_Array2OfReal array( 0, 3, 0, 3 );

Handle(Visual3d_View) hVisual3dView;

hVisual3dView = myView->View();

array = hVisual3dView->Transform();

But it delivers only: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 all the time? Is it a bug, or is there another way to get the view transformation as a 4x4 matrix??

Thanks in advance

Jürgen

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

Hello,

Perhaps they use rotation on the objects, and not on the view ???

Commenter-1

02Commenter-2

Hello Stephane,

In the documentation, I also see a way to get a matrix by projecting coordinates :

Visual3d_View::Projects

void Projects( const Standard_Real AX, const Standard_Real AY, const Standard_Real AZ, Standard_Real& APX,Standard_Real& APY, Standard_Real& APZ) const ;

Purpose

Returns the coordinates of the projection of the 3d coordinates AX, AY, AZ.

Hope this helps