PDA

View Full Version : Point base Axis Center tool


tofuji
05-03-2011, 07:13 PM
This is point base "Axis Center" tool by XPresso.


Regular tool in CINEMA 4D uses only "edges" or "polygons" to align axis direction.

So in some cases, it can not restore original axis, if the shape and axis were very simple. Please try next case.
http://www2.11moon.com/sample_files...thout_axis2.zip

Also it can not work with spline objects because they have no edge nor polygon.


In contrast to it, my tool uses only "points" to move axis position or align axis direction.

So if original axis was at center of 2 points, and aimed to 1 point, it can restore the axis.
Also it can work with spline objects.

Explanation movie
http://www2.11moon.com/sample_files/20110503/extruded_cube_without_axis3.mov

Sample file
http://www2.11moon.com/sample_files/20110503/extruded_cube_without_axis3.zip

txirrindulari
05-13-2011, 08:36 AM
Hi, I think this is the kind of help I need to workaround some PLA axis problem I am stack with.
But I cannot access to your links. I do not speak japaness (neither english) to find it at your site.
Could you correct the link?
thank you very much to share with us.

tofuji
05-13-2011, 10:19 AM
I am sorry, I have fixed it. So please try it.

tofuji
11-22-2011, 04:14 AM
I have added some more options for various objects.

sample file
http://www2.11moon.com/sample_files/20111110c/Restore_axis2.zip

for simple objects.
http://www2.11moon.com/sample_files/20111110c/Restore_axis2_1.mp4

place axis at peak of objects.
http://www2.11moon.com/sample_files/20111110c/Restore_axis2_2.mp4

for tube like objects, with parallel lines to Z axis.
http://www2.11moon.com/sample_files/20111110c/Restore_axis2_3.mp4

for circular truncated cones, without any parallel lines.
http://www2.11moon.com/sample_files/20111110c/Restore_axis2_4.mp4


Manual.

11th Moon/ Toshio Fuji/ gtofuji@gmail.com/ 20111122

This XPresso restores axis position and direction, from reference points in the polygon.

1. First, please make a null object named like "axis",
then place it under the polygon object you want to restore axis.

2. Next, apply this XPresso to the "axis".

3. Select 1 or 2 points (A, A and B) and press "get center point" button.
case 1 point; Then the "axis" is moved to the point (A).
case 2 points; Then the "axis" is moved to center of the points ((A + B)/2),
Also X axis is rotated to one of the points (A or B, use "reverse X axis" option to select one).

4. If you selected only 1 point in previous step, Select 1 point (B) and press "get X axis" button.
Then X axis is rotated to the point (B). Else skip this step.

5. Select 1 or 2 point (C, C and D) and press "get Z axis" button.
case 1 point; Then Z axis is rotated to the point (C).
case 2 points; Then Z axis is set to parallel to vector (C - D or D - C, use "reverse Z axis" option to select one).
case 2 points ("use center point" option enabled); Then Z axis is rotated to center of the points ((C + D)/2).

After that, X axis should be rotated from the point (B), to keep axes orthogonal.

CGTalk Moderation
11-22-2011, 04:14 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.