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

    Transformations

    Scheduled Pinned Locked Moved Developers' Forum
    23 Posts 10 Posters 15.1k Views 10 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.
    • C Offline
      cjthompson
      last edited by

      The transformation.axes method just transforms the object so that it's axes match the internal ones.

      try using transformation.axes on the grouponent (I believe you used that one 😉)

      then use

      grouponent.entities.transform_entities(grouponent.transformation.inverse,grouponent.entities.to_a)
      

      EDIT: Just tried it and it should work.

      1 Reply Last reply Reply Quote 0
      • C Offline
        cjthompson
        last edited by

        I just looked at the picture you posted again. Do you want flip the axes, instead of rotating them? If so, I don't know if that is possible. It's has to do with the fact that sketchup uses a right hand orientation, instead of left-hand orientation that I'm guessing LDraw uses (http://en.wikipedia.org/wiki/Right-hand_rule).

        Is there a way to change the orientation of axes in LDraw? (I haven't used it myself, so I have no idea)

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jim
          last edited by

          One of the reasons I asked was that I wrote this LDraw importer. But the LDraw axes system does not match SketchUps, and I really want the importer to correct this on import. You can see the import works, but I haven't been able to figure out how to trasnform the geometry during the import so it uses a SketchUp axes that people are familiar with using.


          019.jpg

          Hi

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

          Advertisement