Move Toward scriptReleased under the GNU LESSER GENERAL PUBLIC LICENSE. Download (Windows users, right click and "Save As") This script is freely distributable AC3D versions prior to version 5 have not been tested with this script. History2005/12/09
The interface options are as follows:
DescriptionMove Toward is an AC3D script that allows you to move a selection (composed of one or more objects, surfaces or vertices) toward a user defined point.
InstallationCopy the movetoward.tcl file to your AC3D scripts folder (for example, if using Windows, C:\Program Files\AC3D5\scripts) and (re)start AC3D. You will find the "Move toward..." menu item under the "Tools" menu.
Example : Moving verticesIn this example we'll move vertices on a non-axis-aligned surface. I used this utility when modeling a roof for a house. I had a pitched surface, and I wanted to make a hole in the surface and size it to accomodate a window unit. First, create a rectangle with the square facing the Front (xz) view. Rotate the surface -45 degrees on the X axis. Make a hole in the rectangle using AC3D's "Surface | Make hole", and you should be here:
Now I want to make the window "taller". You could manually move the vertices at the top and bottom of the "hole", but it's very difficult to keep the vertices on the exact same plane as the angled surface (try it and see). In many cases, you'll get close, but if you're going for precision, then the Move Toward utility is the way to go here. Perform the following steps: 1. Select the "Move toward..." menu item under the "Tools" menu. This brings up the Move Toward interface. 2. Select the topmost vertices of the rectangle and click the ">" button in the Move Toward window. This makes the center of the rectangle's top edge our move-to target. 3. Select the top-most vertices of the "hole" and click "Toward". The selected vertices will move halfway between their current position and the top edge if you left the "Move by percentage" active and at 50%. 4. Select the bottom-most vertices of the rectangle and click the ">" button in the Move Toward window. 5. Select the bottom-most vertices of the "hole" and click "Toward". If you followed these steps, you should end up with the shape below.
Example : moving objectsHere, I've created two boxes, and placed them both at x/z coordinates { 0, 0 }. Basically, one on top of another, with a gap in between. I then select both boxes and rotated them 45 degrees around the Z axis.
In this example we'll use Move Toward to move the lower box "toward" the upper one in such a way that their sides are still parallel. 1. Select the "Move toward..." menu item under the "Tools" menu. This brings up the Move Toward interface. 2. Select the "top right" box of the rectangle and click the ">" button in the Move Toward window. This makes the center of the box our move-to target. 3. Select the "lower left" box and click "Toward". The selected vertices will move halfway to the top edge if you left the "Move by percentage" active and at 50%.
You may also move surfaces in the same way as vertices and objects, of course. |
All content Copyright © 2006 Dennis Hawthorne, except where explicitly noted supercoldmilk © 2006 Dennis Hawthorne |