Talk About Network

Google





Graphics > Alias software > Re: *snap3to3*
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 812 of 912
Post > Topic >>

Re: *snap3to3*

by aen <aen@[EMAIL PROTECTED] > Jun 1, 2006 at 12:21 AM

On 30 May 2006 05:06:55 -0700, "marien" <marienkaferoe@[EMAIL PROTECTED]
> wrote:

>anybody knows if there is a command called snap3to3?
>or
>is there any command which can do the same job with snap 3 points to 3
>points or snap together tool+snap to polygon face?
>
>I have to find a way to script what these commands do manually..
>
>any suggestion?:(

hi marien

The snap 3 to 3 command is under: Modify->Snap Alignment Objects-> Snap 3
to 3.

With your script editor open you can see that it creates a sequence of
commands.
1. It moves (with no rotations) one selected point of obj1 to a selected
point
of obj2.

2. Using this point as the pivot obj1 is rotated to align with obj1 and
obj2's
second selected points. 
You can use the "AngleBetween" Mel command to calculate this. Obj1 point 1
and 2
form a vector, obj2 point 1 and 2 form a vector which you feed into the
AngleBetween. And you can get back the euler transformation to rotate obj1
into
alignment with obj2.

3. The last rotation used Obj1 point 1 and 3 to form a vector with Obj2
point 1
and 3 forming a vector to feed into AngleBetween.  In the end the 2 object
faces
are aligned (not certain if the normals are taken into account).

In theory its not that difficult, but in practical terms you will have
bugs...
The error controls for the selector "ls" and just building coding can get
complicated. 

Good luck

aen...
 




 3 Posts in Topic:
*snap3to3*
"marien" <ma  2006-05-30 05:06:55 
Re: *snap3to3*
aen <aen@[EMAIL PROTEC  2006-06-01 00:21:41 
Re: *snap3to3*
aen <aen@[EMAIL PROTEC  2006-06-01 00:38:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 19:06:15 PST 2009.