LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to rotate 3D objects around the edge of another 3D object

Hi everyone:

 

I am trying to create an image of a human finger with 3D picture control, but in a simpler way. I intended to use three square boxes which are created by using Create Box VI.. Then I use Translate Invoke Node to line them up one after another. Then, I use Rotation Invoke Node to manipulate the rotation of the second and the third box. But, here are the problems.

 

The first problem: How can I rotate the second box(Green box) around the edge of the first box(Red box), so that when the green box rotates, it doesn't overlap with the red box. I want it to be the same with the blue box, so that the blue box rotates around the edge of the green box. 

 

The second problem: At the moment, the third box(Blue box) is rotating around the origin of the first box(Red box), how can I change it so that the blue box rotates around the edge of the second box(Green box). 

 

I have attached the VI to this post. Please could anyone help me.

 

Thanks very much

 

Tommy Yip

0 Kudos
Message 1 of 3
(2,835 Views)

Hi Tommy,

 

To get rid of the overlapping boxes one thing you could alter the position of the green box as the angle is increased, the green box could move right on its X axis and rotate on the XY plane so it bevels round the red box in accordance with the angle you give. This would require some playing around however to get the values just right.

 

Have you had any success or updates since your first post?

 

Regards,

Ben B.

Applications Engineer
National Instruments UK & Ireland

"I've looked into the reset button, the science is impossible!"
0 Kudos
Message 2 of 3
(2,798 Views)

Thank you very much for the reply

 

No, I have not progress much since my first post. But you have given me an idea of rotating on the XY plane. I will try it and see if it works.

 

Thanks very much

 

Tommy 

0 Kudos
Message 3 of 3
(2,774 Views)