AndrewVK Posted January 22, 2004 Share Posted January 22, 2004 I`m trying to create VexAlign tool which allows me to orient object by 3 points. The main idea is: "The two triplet of points define two planes. The object are transformed so that the reference plane transforms into the target plane. The first reference point exactly going to the first target point, and the second reference point going to the line through the first and second target points" Its almost done...but i dont have an idea how to fix "negative Target_Point_3_TY bug".... Rotation angle always "0 <= Angle <= 180" degree. Set TargetPoint3 TY < 0 to see Hope someone knows what's wrong here... MakeAlignHelp.zip Quote Link to comment Share on other sites More sharing options...
Mario Marengo Posted January 25, 2004 Share Posted January 25, 2004 Hey Andrew, I only had a very quick look, so I'm likely missing something, but it seems that all you need is another dihedral matrix to go between the two plane normals, no? Anyway; you're probably looking for something else, but here's your hip with my tiny fix... Cheers! MakeAlignHelp2.zip Quote Link to comment Share on other sites More sharing options...
AndrewVK Posted January 30, 2004 Author Share Posted January 30, 2004 I guess it was just a bad day fo me... to much coffee and nikotin. In no way could I make second Allign VOP work correctly. Thak You Mario!!! It works just fine Quote Link to comment Share on other sites More sharing options...
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.