sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Is there a minimum rotation for components?

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 3 Posters 916 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Al HartA Offline
      Al Hart
      last edited by

      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?

      Al Hart

      http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
      IRender nXt from Render Plus

      1 Reply Last reply Reply Quote 0
      • KrisidiousK Offline
        Krisidious
        last edited by

        is this a rhetorical question? cuz you seem to know the answer...

        By: Kristoff Rand
        Home DesignerUnique House Plans

        1 Reply Last reply Reply Quote 0
        • Al HartA Offline
          Al Hart
          last edited by

          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...

          Al Hart

          http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
          IRender nXt from Render Plus

          1 Reply Last reply Reply Quote 0
          • R Offline
            RickW
            last edited by

            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.

            RickW
            [www.smustard.com](http://www.smustard.com)

            1 Reply Last reply Reply Quote 0
            • KrisidiousK Offline
              Krisidious
              last edited by

              nice thinking outside the box or radian as it were... Rick

              By: Kristoff Rand
              Home DesignerUnique House Plans

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement