LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3d Picture Control Rotation

I have loaded and are displaying an STL file (created in Autodesk Inventor) using the 3D Picture Control. However, although I can rotate about any of the principal axis by a specified amount or a mixture of the axis (using Set Rotation), I am unable to rotate by independent amounts of an angle in each axis, i.e I would like to rotate about the X axis by 45 degrees and say the Z axis by 10 degrees. Does anybody know how this can be achieved? Because it would seem that subsequent ‘Set Rotations’ reset to the original orientation before applying the new specified rotation or axis.

0 Kudos
Message 1 of 12
(6,680 Views)

It’s ok, I figured it out. I used ‘rotation’ instead of ‘set rotation’ but enclosed it within a case structure, which is triggered by a Boolean button (switch to latched). I can therefore set the angle and axis of rotation independently now.

Message 2 of 12
(6,669 Views)

Do you know how to change the location of the rotation axis, of the imported object?

for example, when i imported an ASE of STL file format, and then rotate it about x axis 45 degree, but the location of the coordinate origin is in the middle of the object, i want to relocate the location of the coordinate origin to the end of the object, so when i rotate it will rotate according to my desire. thanks.

-Just a student-
0 Kudos
Message 3 of 12
(6,503 Views)
Hi,


First you need to translate to the point of rotation. Then you need to use Rotate Object to do the rotation, not Set Rotation. If you use Rotate Object, it will rotate around the origin or the scene (0,0,0). If you use Set Rotation, it will rotate around the origin of the object. Don't know why.


Regards,


Wiebe.
0 Kudos
Message 4 of 12
(6,487 Views)

Dear marcbrook

Could you please help me by sending me an example of how to correctly load and display an STL file? I am stranded and cannot seem to succeed. The 3D picture control always remains black.

Thank you so much in advance

Kind Regards
gigiozzi

0 Kudos
Message 5 of 12
(6,302 Views)

Gigiozzi,

 

It sounds like you just need to use a property node to change the background color and perhaps an invoke node to rotate the set and make your object viewable. The following community example might help you out: http://decibel.ni.com/content/docs/DOC-5691

Message Edited by Will S. on 07-20-2009 09:24 PM
Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
0 Kudos
Message 6 of 12
(5,879 Views)

hi Will S.

 

the link you've given is not working.

do i need to register in  NI Developer Zone Community to access this example?

 

thanks

Kudos always welcome for helpful posts 🙂
0 Kudos
Message 7 of 12
(5,792 Views)

RENN wrote:

the link you've given is not working.

do i need to register in  NI Developer Zone Community to access this example?


No need to login to community to download that.

 

Link not working means what is exactly happening? Any browser problem for you? Post in detail.

 

Mathan

0 Kudos
Message 8 of 12
(5,790 Views)

instead of the picture i just see the name of the picture.

 

stlbd.png

 

Kudos always welcome for helpful posts 🙂
0 Kudos
Message 9 of 12
(5,773 Views)

You are right Smiley Sad am also not able to view the image. Something got screwed up or maybe our browser issue am using IE8 RC1

 

Mathan

0 Kudos
Message 10 of 12
(5,771 Views)