09-16-2005 10:49 AM
09-16-2005 12:08 PM
To rotate about an object as opposed to a center of a graph requirea a simple "world translation transformation" just translate all of your XYZ coordinated by the center or rotation (ie, center of the object.). This can be done through subtracting X' = X-Xcenter, Y' = Y-Ycenter and Z' = Z-Zcenter.
Paul
09-16-2005 12:36 PM
I'm not quite sure what you mean. Lets say I have a cube that has dimensions of 100x100x100 units. The centre point of the cube would be 50,50,50 (X,Y,Z) (providing one of the corner points was at 0,0,0) so now I want to rotate the cube 20 degrees on the cubes X plane. How would I apply the 'world translation transformation'? Is there perhaps an example you could direct me to so I might better understand the concept? Thanks
Greycat
09-16-2005 01:03 PM
09-16-2005 01:28 PM
thanks unclebump:
It is beginning to come into perspective ... I'll post more if (when) I have more questions ... I knew there must have been some *relatively* simple trig that could do this for me ... guess I skippped that class 😉 ...Thanks again.
Greycat
09-16-2005 01:32 PM
If you don't mind it not being the activeX 3d graph, you can make a rotating 3-D cube with the picture control and this toolkit. It is some tools for making 3-D objects with the picture control tool. One of the examples is called animate object and it rotates a torus. Simply replace the build toroid with a build box and it should be good to go.
Hope that this helps,
Bob Young
09-16-2005 01:48 PM
Thanks to you too Bob Y. ... I'll check that out
Greycat
09-17-2005 02:34 PM
Ok ... this is as far as I've gotten for now. Can anyone tell me if I'm goin in the right direction? And perhaps what my next steps are (I'm assuming I'll have to apply some sort of matix to this) The x rotation works eveytime, but y and z don't seem to work properly. I'm goin to continue researching and seein what I can come up with. Any help would be appreciated. Thanks again.
Greycat
09-17-2005 03:17 PM - edited 09-17-2005 03:17 PM
The attached images were captured when running "Simple 3D Object6.vi" found in the attaced llb.
This require the LV 3-d picture toolkit.
If you develop anything using these examples, please share a demo of your end results.
Ben
Message Edited by Ben on 09-17-2005 03:22 PM
09-19-2005 10:26 AM - edited 09-19-2005 10:26 AM
Message Edited by Greycat on 09-19-2005 10:32 AM