About V3d_View

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

Stephane Routelous's picture

Hello,

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

Stephane

Philippe Centa's picture

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