sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] CleanUp

    Scheduled Pinned Locked Moved Plugins
    974 Posts 217 Posters 788.7k Views 217 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.
    • thomthomT Offline
      thomthom
      last edited by

      @gaieus said:

      There is an "unwanted" feature in this plugin (I do not necessarily want to call it a "bug"); it erases coplanar edges also when that edge divides faces where the same material applied but positioned differently. See screenshots attached.

      hmm... Yes - I see how this can be an issue. Will need to ponder on how to avoid this though.

      @gaieus said:

      Thanks for looking into this issue - this is the best ever cleanup script I have ever encountered. aybe abother wish - could there be a feature/setting to clean up only whatever is in context (like inside a goup) and/or in a certain selection?
      Or maybe I missed something?

      CleanUp.png
      Yea - the UI is horrible.

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

      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        Hm. Can I have another (older?) version?

        cleanup.png

        Gai...

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          No - I seem to have extra menu items from working on v1.2.0 oopsie

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

          1 Reply Last reply Reply Quote 0
          • GaieusG Offline
            Gaieus
            last edited by

            ๐Ÿ˜†


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

            Gai...

            1 Reply Last reply Reply Quote 0
            • thomthomT Offline
              thomthom
              last edited by

              @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 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                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 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  @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 Reply Last reply Reply Quote 0
                  • EscapeArtistE Offline
                    EscapeArtist
                    last edited by

                    "The selected attachment does not exist anymore"

                    Error when clicking for download.

                    1 Reply Last reply Reply Quote 0
                    • thomthomT Offline
                      thomthom
                      last edited by

                      @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 Reply Last reply Reply Quote 0
                      • CadFatherC Offline
                        CadFather
                        last edited by

                        Thanks Thom, this is good.

                        1 Reply Last reply Reply Quote 0
                        • EscapeArtistE Offline
                          EscapeArtist
                          last edited by

                          @thomthom said:

                          You probably tried to download just as I uploaded a quick patch. ๐Ÿ˜ณ

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

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            MtnTrails
                            last edited by

                            ๐Ÿ‘ 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 Reply Last reply Reply Quote 0
                            • GaieusG Offline
                              Gaieus
                              last edited by

                              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 Reply Last reply Reply Quote 0
                              • thomthomT Offline
                                thomthom
                                last edited by

                                @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 Reply Last reply Reply Quote 0
                                • Rich O BrienR Offline
                                  Rich O Brien Moderator
                                  last edited by

                                  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 Reply Last reply Reply Quote 0
                                  • thomthomT Offline
                                    thomthom
                                    last edited by

                                    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 Reply Last reply Reply Quote 0
                                    • EarthMoverE Offline
                                      EarthMover
                                      last edited by

                                      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 Reply Last reply Reply Quote 0
                                      • J Offline
                                        Jim
                                        last edited by

                                        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 Reply Last reply Reply Quote 0
                                        • thomthomT Offline
                                          thomthom
                                          last edited by

                                          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 Reply Last reply Reply Quote 0
                                          • thomthomT Offline
                                            thomthom
                                            last edited by

                                            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 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 45
                                            • 46
                                            • 47
                                            • 48
                                            • 49
                                            • 49 / 49
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement