LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Coordinates of object in 3d picture

Hi,

 

I would like to obtain the 3d coordinates of the green spheres after applying a rotation and translation of its parent, the red rectangle. How could this be achieved?

 

 

0 Kudos
Message 1 of 6
(2,704 Views)

Keep a reference to the object when composing the scene and then, at the point int ime where you require the data, cast the reference to a sphere reference and then you can access the properties.

 

OR you can name them, then retrieve an object based on name, cast to sphere and read the coordinates.

 

Shane.

0 Kudos
Message 2 of 6
(2,698 Views)

I tried to name the sphere and then retrieve the coordinates after the rotation of the parent object but to no success. When retrieving the rotation in the child object only its initial values are shown (Get Rotation VI). Is this what you meant?

0 Kudos
Message 3 of 6
(2,683 Views)

I don't have code in front of me, I can't test.

 

Hmm, you might have a point, the actual XYZ positions are not readable?

0 Kudos
Message 4 of 6
(2,681 Views)

Unfortunately they don't seem to be so. I will post the vi ASAP.

0 Kudos
Message 5 of 6
(2,676 Views)

Any answers to this post?

How do I get the global position and orientation of an object in a 3D scene?

The get rotation and get translation vi are local to the object, and the object is >10 children deep.....

0 Kudos
Message 6 of 6
(2,442 Views)