sketchucation logo sketchucation
    • 登入
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    Transformations

    已排程 已置頂 已鎖定 已移動 Developers' Forum
    23 貼文 10 Posters 15.6k 瀏覽 10 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • C 離線
      cjthompson
      最後由 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • C 離線
        cjthompson
        最後由 編輯

        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 條回覆 最後回覆 回覆 引用 0
        • J 離線
          Jim
          最後由 編輯

          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 條回覆 最後回覆 回覆 引用 0
          • 1
          • 2
          • 2 / 2
          • 第一個貼文
            最後的貼文
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement