PDA

View Full Version : Matrix


mihirradia
11-04-2016, 02:43 PM
Hi,
I have loaded an object in the virtual environment. Now I want to know its 4x4 Homogenous Coordinate System and print the values in the Interactive window. How do I do that?

Thanks in advance.

Jeff
11-04-2016, 03:54 PM
Take a look at the node3D.getMatrix() (http://docs.worldviz.com/vizard/#commands/node3d/getMatrix.htm) command.

mihirradia
11-05-2016, 08:17 AM
Hi,
The command that you showed returns the transform of the object in the specified coordinate system. But, my goal is to find the 4X4 matrix of an object after loading it into the virtual environment. Can you provide me with an simple exam of how I can achieve that?

mihirradia
11-05-2016, 08:20 AM
Hi,
The command that you showed returns the transform of the object in the specified coordinate system.. But, my goal is to find the 4x4 matrix of the object after loading into the virtual environment and print those values. Can you provide me with a simple example of how it can be achieved?

I would be grateful if you could help me out.

Thanks in advance.

Jeff
11-07-2016, 03:53 PM
But, my goal is to find the 4x4 matrix of the object after loading into the virtual environment and print those values.

I'm not sure how this is different from getting the object's matrix in either the local, parent, or global coordinate system. Can you explain further what data you are looking for?

mihirradia
11-08-2016, 09:03 AM
Hi Jeff,
I'm sorry I understood your point now. The command is exactly what I wanted. Could you provide me with an example of how can I obtain the 4x4 matrix using node3d.getmatrix().