Cloud Hidden Posted January 16, 2003 Share Posted January 16, 2003 I want an object to be moved to a specific x,y,z position. There doesn't seem to be a Set3DCntr complement to Get3DCntr. What's the best way to do that--Get3DCntr and then Move3DObj by the difference? Or is there a direct way that I've overlooked? Thanks. Quote Link to comment
MullinRJ Posted January 16, 2003 Share Posted January 16, 2003 Your guess is correct, move the difference. If you haven't already written one, here's a short procedure I've used before for Set3DCntr. HTH, Raymond Procedure Set3DCntr(H :Handle; x, y, z :Real); { Set the 3D center point of the object referenced by handle "H", to the coordinates specified by "x", "y" & "z" } Var u, v, w :Real; Begin Get3DCntr(H, u, v, w); Move3DObj(H, x-u, y-v, z-w); End; Quote Link to comment
Alexandre Villares Posted January 16, 2003 Share Posted January 16, 2003 Any tip on how to get the 3D position of a PIO on VS 9.5 ? I think I remember that Get3Dcntr() didn't make it. []s A Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.