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

    [Plugin] CleanUp

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

      @gaieus said:

      I tried to lock such faces with positioned materials but the script erases lines in locked groups, too! 😮

      That's interesting. Another thing to note down.

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 條回覆 最後回覆 回覆 引用 0
      • thomthomT 離線
        thomthom
        最後由 編輯

        Armed with more info from Simone Nicolo I now have a better method for detecting coplanar faces - the same method Sketchup use. I think it's 100% reliable. No more messing about with tolerances.

        Highly recommended update!

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 條回覆 最後回覆 回覆 引用 0
        • thomthomT 離線
          thomthom
          最後由 編輯

          @thomthom said:

          Armed with more info from Simone Nicolo I now have a better method for detecting coplanar faces - the same method Sketchup use. I think it's 100% reliable. No more messing about with tolerances.

          Highly recommended update!

          😞 Turns out it's not 100%. In one of my test model it still left some edges that could be erased.

          Updated with some minor UI fixes.

          Thomas Thomassen — SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 條回覆 最後回覆 回覆 引用 0
          • EscapeArtistE 離線
            EscapeArtist
            最後由 編輯

            "The selected attachment does not exist anymore"

            Error when clicking for download.

            1 條回覆 最後回覆 回覆 引用 0
            • thomthomT 離線
              thomthom
              最後由 編輯

              @escapeartist said:

              "The selected attachment does not exist anymore"

              Error when clicking for download.

              You probably tried to download just as I uploaded a quick patch. 😳

              Thomas Thomassen — SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

              1 條回覆 最後回覆 回覆 引用 0
              • CadFatherC 離線
                CadFather
                最後由 編輯

                Thanks Thom, this is good.

                1 條回覆 最後回覆 回覆 引用 0
                • EscapeArtistE 離線
                  EscapeArtist
                  最後由 編輯

                  @thomthom said:

                  You probably tried to download just as I uploaded a quick patch. 😳

                  Ah, timing is everything. Works just fine. Thanks!

                  1 條回覆 最後回覆 回覆 引用 0
                  • M 離線
                    MtnTrails
                    最後由 編輯

                    👍 Thank you, Thom! Works just like I'd hoped. What a great time saver!

                    -Brian

                    Keep doing what you're doing and you'll keep getting what you're getting.

                    1 條回覆 最後回覆 回覆 引用 0
                    • GaieusG 離線
                      Gaieus
                      最後由 編輯

                      Hi Thom,

                      Thanks for the update. I'll definitely try it out (I managed to forget about two coplanar faces with differently positioned but the same texture again and screwed up my model - no big hassle though just a "doh" moment again...)
                      😄

                      Gai...

                      1 條回覆 最後回覆 回覆 引用 0
                      • thomthomT 離線
                        thomthom
                        最後由 編輯

                        @gaieus said:

                        Hi Thom,

                        Thanks for the update. I'll definitely try it out (I managed to forget about two coplanar faces with differently positioned but the same texture again and screwed up my model - no big hassle though just a "doh" moment again...)
                        😄

                        Ah yes - I'm still not sure how to account for that. But it is possible ... somehow...

                        Thomas Thomassen — SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

                        1 條回覆 最後回覆 回覆 引用 0
                        • Rich O BrienR 離線
                          Rich O Brien Moderator
                          最後由 編輯

                          Hi Thom,

                          Thanks for the update, one of my favourite plugins.
                          Doesnt say much about my modelling ability!

                          Download the free D'oh Book for SketchUp 📖

                          1 條回覆 最後回覆 回覆 引用 0
                          • thomthomT 離線
                            thomthom
                            最後由 編輯

                            Important update in 1.2.2
                            Sorry for all these updates recently.
                            I think I found the root of why the last update wasn't 100%.

                            It now erases edges as they are processes, instead of in bulk later. This is because each face's plane equations must be re-evaluated after it's been merged. This might lead to slightly longer processing time - but I now hope that it truly is 100% watertight.

                            Thomas Thomassen — SketchUp Monkey & Coding addict
                            List of my plugins and link to the CookieWare fund

                            1 條回覆 最後回覆 回覆 引用 0
                            • EarthMoverE 離線
                              EarthMover
                              最後由 編輯

                              Thanks for the update. I use this puppy all the time! 👍

                              3D Artist at Clearstory 3D Imaging
                              Guide Tool at Winning With Sketchup
                              Content Creator at Skapeup

                              1 條回覆 最後回覆 回覆 引用 0
                              • J 離線
                                Jim
                                最後由 編輯

                                Thanks - it is doing better job of removing edges. I am willing to trade a little extra time for a cleaner model.

                                I did get a reference to a deleted Edge error on this model (.stl import.) I haven't investigated the cause, but I've attached it in case you're curious.

                                Error: #<TypeError: reference to deleted Edge> C:\Program Files\Google\Google SketchUp 7\Plugins\tt_cleanup.rb:283:infaces'`

                                My fix:
                                283: next unless e.valid? and e.is_a?(Sketchup::Edge)

                                But is doesn't explain the cause.


                                moai.skp

                                Hi

                                1 條回覆 最後回覆 回覆 引用 0
                                • thomthomT 離線
                                  thomthom
                                  最後由 編輯

                                  hm.. that is odd. I wonder why that happens. thanks for posting the model.

                                  Thomas Thomassen — SketchUp Monkey & Coding addict
                                  List of my plugins and link to the CookieWare fund

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • thomthomT 離線
                                    thomthom
                                    最後由 編輯

                                    Updated to account for the issue reported by Jim.

                                    Though I still don't understand why I ever get a reference to a deleted edge...

                                    Thomas Thomassen — SketchUp Monkey & Coding addict
                                    List of my plugins and link to the CookieWare fund

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • TIGT 離線
                                      TIG Moderator
                                      最後由 編輯

                                      Trap unexpected deleted edges with edge.erase! if edge.valid? type of code ?

                                      TIG

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • thomthomT 離線
                                        thomthom
                                        最後由 編輯

                                        Yes - but what puzzles me is why the code comes across deleted references at all. After reviewing my code I can't work out why. I am iterating an array copy of the entities collection. And I only iterate the array once.

                                        Thomas Thomassen — SketchUp Monkey & Coding addict
                                        List of my plugins and link to the CookieWare fund

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • thomthomT 離線
                                          thomthom
                                          最後由 編輯

                                          Gaieus: This update is for you. Made it investigate the UV's before merging.
                                          Not that it is very strict, the UV values for either vertex of the edge has to be identical for each face connected to it before it merges. This means there might be cases where it visually looks like they should merge, but doesn't. They should merge is you position a material on one face and use the dropper to paint other adjacent faces.
                                          To turn of this feature just enable the Ignore UV's.

                                          Note that this is pretty fresh code that hasn't been tested well. (Only very quickly.) So please investigate the model after using the tool and report any unexpected behaviour. (Please most sample model as that will make debugging much easier.)

                                          Thomas Thomassen — SketchUp Monkey & Coding addict
                                          List of my plugins and link to the CookieWare fund

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • E 離線
                                            Ern
                                            最後由 編輯

                                            Very handy,


                                            Now all the cookies are yours!

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 48
                                            • 49
                                            • 6 / 49
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement