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!
    🔌 Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download

    [Plugin] CleanUp

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

                    @thomthom said:

                    Gaieus: This update is for you. Made it investigate the UV's before merging...

                    Thanks a bunch, Thom, 👍
                    I will definitely check it out. Lately I have needed this function really badly.

                    Gai...

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

                      Thanks a lot Thom !! 👍 This is one of the greatest plugins.

                      Top3D Studio

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

                        Version 2.0.0

                        • Supports ThomThom's Menu
                        • Persistent preferences.
                        • Settings for global and local cleanup synced.
                        • Repairs split edges. (Based on Carlo Roosen's Repair Broken Edges)
                        • Removes duplicate faces.
                        • Fixes duplicate component definition names.
                        • Runs Validity Check at the end.

                        "Duplicate faces" are faces where multiple faces share the same set of vertices. The plugins should also be able to detect smaller faces overlapping larger faces.

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

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

                          Downloading... 😉

                          Gai...

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

                            Hi Thom,

                            thanks for the update 👍

                            Incredible tool! Should be mentioned in the Visual Index thread

                            Rich

                            Download the free D'oh Book for SketchUp 📖

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

                              Yep, this is the best cleanup script available.

                              I know the choice of user interface is limited, but I'm not a fan of nested menus. I was wondering if a webdialog interface would work. So then I could have a single shortcut that would bring up the "cleanup" dialog showing the options available, and then "run" from there. Maybe? Someday?

                              Edit: "best" is an under-statement - it's important and essential.

                              Hi

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

                                @jim said:

                                I know the choice of user interface is limited, but I'm not a fan of nested menus. I was wondering if a webdialog interface would work. So then I could have a single shortcut that would bring up the "cleanup" dialog showing the options available, and then "run" from there. Maybe? Someday?

                                Yes - that is exactly what I have in mind. The options are growing so a better UI is required. However, I'm trying to prioritise Vertex Edit. This has been a necessary distraction because I need it at work.

                                So my plans for v2 that did not make it will be postponed to v3:

                                • Merge Identical and similar materials
                                • Axis adjustments
                                • Find identical groups/components (If I can find a good algorithm for this.)
                                  For this webdialog UI is a must in order to be friendly to use.

                                Thanks for letting me know how to activate the Fix Model function - in some cases it appears that erasing big bulk of edges messes up SUæs Loops. Even though everything looks fine in SU. So it was good to force that test after a cleanup.

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

                                1 條回覆 最後回覆 回覆 引用 0
                                • soloS 離線
                                  solo
                                  最後由 編輯

                                  This is one of my most cherished ruby's, thank you for improving it and making it an invaluable tool.

                                  http://www.solos-art.com

                                  If you see a toilet in your dreams do not use it.

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

                                    @thomthom said:

                                    ...So my plans for v2 that did not make it will be postponed to v3:

                                    • Merge Identical and similar materials
                                    • Axis adjustments
                                    • Find identical groups/components (If I can find a good algorithm for this.)
                                      ...

                                    Now these definitely sound incredible! Can hardly wait to see them in here!

                                    Gai...

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • G 離線
                                      gilad75
                                      最後由 編輯

                                      Thanks a lot, you created magic!
                                      👍

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • H 離線
                                        Harbor
                                        最後由 編輯

                                        THanks a lot man, It should be one of the best plugin of SU

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • D 離線
                                          davery
                                          最後由 編輯

                                          Thanks. Greatly appreciated.

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • Z 離線
                                            Zacchia
                                            最後由 編輯

                                            Can someone please explain what i do when i purge? Do i loose something in model? Please explain with easy words 😎 thanks!

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

                                            Advertisement