Hi Ray, it looks like the black piece is of a slightly different size than the spot you're trying to put it so it's not going to be an exact fit there.
I used this script to get the length of a selected edge:
script:moi.ui.alert( moi.geometryDatabase.getSelectedObjects().getCurves()[0].getLength() );
I thinking building a more complete wire framework like Stefan was showing above is probably better.
But anyway the way you can do a 3 point align currently works like this - you select the object that you're moving then run Transform > Orient. Place the origin point of the orientation picker onto your first known point.
Now comes the part that's a bit tricky - the way the orientation picker works is that one of the 3 axes has a dot over it, that one is the "primary axis" and if you drag it, it can be freely moved to point in any direction. The other 2 axes are restricted when you drag them to only pivot around the primary axis. You can set the primary axis by clicking on one of the axis lines without dragging it.
So the next step is to place the x axis pointing at your second point. Click on it once to set it as the primary axis and then drag on it and release over your 2nd point.
Then drag the y axis and release it over your 3rd point.
I'll try to make a video of this for you in a bit.
Since it's a little complicated I've been meaning to make a "3 points" option in the orientation picker as well.
- Michael
|