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

    Group in a group in a group... - transform point to outside?

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

      It is not advisable to use UI.messagebox() for debugging. (If the string argument is invalid, then UI.messagebox() either fails silently, or causes a error by itself.)

      Use puts() to output inspection strings to the Console instead.

      I'm not here much anymore.

      1 條回覆 最後回覆 回覆 引用 0
      • sdmitchS 離線
        sdmitch
        最後由 編輯

        I tried to simulate your problem using the code you posted but I got 0,0,0 points for some of the faces as expected.

        group in a group.png

        Perhaps if you posted a model just so we are working on the same problem.

        Nothing is worthless, it can always be used as a bad example.

        http://sdmitch.blogspot.com/

        1 條回覆 最後回覆 回覆 引用 0
        • N 離線
          niccah
          最後由 編輯

          @sdmitch said:

          I tried to simulate your problem using the code you posted but I got 0,0,0 points for some of the faces as expected

          Perhaps if you posted a model just so we are working on the same problem.

          Oh, that's so nice! Thanks a lot for your help!

          I uploaded a Sketchupfile:

          http://arbeitenkannstduspaeter.eu/Sketchup/Test3.skp

          When you get the right result - this means, I have to look for the problem on an other position... puhh...

          1 條回覆 最後回覆 回覆 引用 0
          • N 離線
            niccah
            最後由 編輯

            Okay, I played a little bit with this problem...
            My new findings:

            • when I move the group, the transformation of the outer group change in the right way
            • but I have still an offset (in my case in -x direction)

            Perhaps it helps a little bit to find the main problem!? 😄

            1 條回覆 最後回覆 回覆 引用 0
            • N 離線
              niccah
              最後由 編輯

              I think, I solved the problem - but I don't know exactly, what WAS wrong...

              I saw, by copiing the selected faces into a new group, not every face has the original direction. So, I changed my Face.copy function (I know, its not good to change the Face.class, but I will solve THIS problem later) in that way:

              outer_face = ents.add_face ov outer_face.material = "green" if outer_face.normal != self.normal outer_face.reverse! end

              Now, all the faces have the right direction and now the problem with the offset of the points is gone.

              But, to be honest, I have realy no idea, how these two problems correlate! And it doesn't help, to change the direction of these faces by hand - the problem stays! Just by copiing all the faces again, the problem of the offset is gone!

              Do you have ANY idea what's going on?

              I thank you sohhhhh much for all your support!!! You helped my realy a lot!

              1 條回覆 最後回覆 回覆 引用 0
              • 1
              • 2
              • 2 / 2
              • 第一個貼文
                最後的貼文
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement