Is there a minimum rotation for components?
-
I seem to be able to place a 0.06 rotation on a component, but not a 0.05 rotation.
Here is the code setting the transform on the component:
trace("ROTATE angle; %g in rad; %g",angle, deg2rad(angle)) trot = Geom;;Transformation.rotation(center, axis_vector, deg2rad(angle.to_f)) show_transformation("TROT",trot) component.transformation = trot tmid = component.transformation show_transformation("TMID",tmid)
Here is the output for a 0.05 rotation angle. The transformation does not seem to be applied to the component.
ROTATE angle; -0.05 in rad; -0.000872665 TROT 1 -0.0008727 0 0 0.0008727 1 0 0 0 0 1 0 0 0 0 1 TMID 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
Here is the output for a 0.06 rotation angle. It is applied properly.
ROTATE angle; -0.06 in rad; -0.0010472 TROT 1 -0.001047 0 0 0.001047 1 0 0 0 0 1 0 0 0 0 1 TMID 1 -0.001047 0 0 0.001047 1 0 0 0 0 1 0 0 0 0 1
TMID is the rotation on the component after applying TROT.
0.06 works ok, but 0.05 does not seem to take.
has anyone run into a similar problem?
-
is this a rhetorical question? cuz you seem to know the answer...
-
I tried it in two places, but perhaps another Ruby programmer has found a way to solve it.
For example, I am trying to apply a 0.05 rotation to the current rotation. Perhaps there is another way to do this.
Also, I have not done a test to see if all component rotations are rounded off (or just very small ones). For example, I could try rotations of 10.05 and 10.06 degrees and see if they give the same result.
In my other CAD systems (we are the developer for ARRIS CAD), this would be a problem, because if you had a very large component and rotated it, and the rotation was rounded off, and then you measured something it could be off by several feet.
@krisidious said:
is this a rhetorical question? cuz you seem to know the answer...
-
It is far less than ideal, but did you try over-rotating and then rotating back slightly less? ie. rotate 4 degrees, then come back 3.95 degrees (or radians, or whatever units)
I suspect, though, that you're running into Sketchup's tolerance settings. No evidence other than your own - just a hunch.
-
nice thinking outside the box or radian as it were... Rick
Advertisement