• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] CleanUp

Scheduled Pinned Locked Moved Plugins
974 Posts 217 Posters 788.0k Views
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.
  • T Offline
    thomthom
    last edited by 21 Oct 2009, 19:58

    @chris fullmer said:

    Can you hit ctrl-z in ruby? πŸ˜„

    Yea, http://code.google.com/intl/nb/apis/sketchup/docs/ourdoc/sketchup.html#undo
    But that would ruin any kind of possibility to undo the whole erase coplanar operation.

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

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 21 Oct 2009, 20:00

      ...could create a temp group and use that to replicate the two faces (when within a range where we can't be certain.)

      but I'd still try to avoid that if I can calculate this.

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

      1 Reply Last reply Reply Quote 0
      • H Offline
        honoluludesktop
        last edited by 21 Oct 2009, 20:50

        Hi Thomas, I lost a texture from a face in a 61k faces model. BTW what happens when you have coplaner faces with different textures, or images placed on textured faces (say a run on a wood floor). Didn't read all the post, so sorry if already covered.

        1 Reply Last reply Reply Quote 0
        • T Offline
          thomthom
          last edited by 21 Oct 2009, 20:52

          @honoluludesktop said:

          Hi Thomas, I lost a texture from a face in a 61k faces model. BTW what happens when you have coplaner faces with different textures, or images placed on textured faces (say a run on a wood floor).

          At the moment it doesn't take into account materials. Only geometry.

          Images? You mean an actual Image entity (It says "Image" in Entity Info when you select it?)

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

          1 Reply Last reply Reply Quote 0
          • T Offline
            thomthom
            last edited by 21 Oct 2009, 20:57

            @honoluludesktop said:

            Well, I often import images (as images, not textures), and place them on textured faces.

            They would be ignored.
            However, I do plan on adding an option for it to respect the material of the geometry. Just got to sort out some other issue first.

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

            1 Reply Last reply Reply Quote 0
            • H Offline
              honoluludesktop
              last edited by 21 Oct 2009, 21:00

              Well, I often import images (as images, not textures), and place them on textured faces.


              Temp01.jpg

              1 Reply Last reply Reply Quote 0
              • H Offline
                honoluludesktop
                last edited by 21 Oct 2009, 21:01

                Opps, added image after your post.

                1 Reply Last reply Reply Quote 0
                • P Offline
                  pilou
                  last edited by 22 Oct 2009, 02:00

                  Seems another very useful plug β˜€
                  About the Ecuadorian file
                  Why not scale the file *10, apply the plug, then scale 1/10 ? πŸ˜‰

                  Frenchy Pilou
                  Is beautiful that please without concept!
                  My Little site :)

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    thomthom
                    last edited by 22 Oct 2009, 06:01

                    @unknownuser said:

                    Seems another very useful plug β˜€
                    About the Ecuadorian file
                    Why not scale the file *10, apply the plug, then scale 1/10 ? πŸ˜‰

                    The scale isn't the issue.

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

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      chango70
                      last edited by 22 Oct 2009, 11:29

                      This works very well. I have made Ctrl Shift C short cut for it. Thank you!

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        thomthom
                        last edited by 22 Oct 2009, 12:20

                        @jim said:

                        Ack! it doesn't look at materials?
                        Oh, and thank you! πŸ‘

                        @honoluludesktop said:

                        Hi Thomas, I lost a texture from a face in a 61k faces model. BTW what happens when you have coplaner faces with different textures, or images placed on textured faces (say a run on a wood floor). Didn't read all the post, so sorry if already covered.

                        Option to respect materials applied added. On by default.

                        Ecuadorian:
                        I adjusted the tolerance so it shouldn't loose any geometry on the model you sent me. Hopefully it won't loose anything in other models either.
                        But there is some cases where which can be removed is left behind. I hope to address this. I figured it's best to be defensive than aggressive.

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

                        1 Reply Last reply Reply Quote 0
                        • E Offline
                          Ecuadorian
                          last edited by 22 Oct 2009, 12:24

                          Sounds nice, Thom!
                          Perhaps you could give the user two or three threshold options.

                          -Miguel Lescano
                          Subscribe to my house plans YouTube channel! (30K+ subs)

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            thomthom
                            last edited by 22 Oct 2009, 12:34

                            @ecuadorian said:

                            Sounds nice, Thom!
                            Perhaps you could give the user two or three threshold options.

                            I added an debug option which you can use for now. You can see it in the screenshot.
                            The closer to 1.0 the stricter it is.

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

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              thomthom
                              last edited by 22 Oct 2009, 12:37

                              @ecuadorian said:

                              Sounds nice, Thom!
                              Perhaps you could give the user two or three threshold options.

                              As for the model you sent me, you won't have much luck reducing the tolerance because of the threshold where the edges can be removed overlaps. That model is a good example of a troublesome model - I'll try and get some Google heads to comment on what's going on.

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

                              1 Reply Last reply Reply Quote 0
                              • I Offline
                                ideas_arte
                                last edited by 23 Oct 2009, 05:43

                                incredibly helpful, thank you very much πŸ˜„

                                1 Reply Last reply Reply Quote 0
                                • N Offline
                                  notareal
                                  last edited by 23 Oct 2009, 07:45

                                  πŸ‘

                                  Welcome to try [Thea Render](http://www.thearender.com/), Thea support | [kerkythea.net](http://www.kerkythea.net/) -team member

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    thomthom
                                    last edited by 23 Oct 2009, 12:10

                                    Updated once again.
                                    Now has a dialog window where you can set various cleanup operation to be run on the entire model. Settings are persistent per session only.

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

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      thomthom
                                      last edited by 23 Oct 2009, 13:08

                                      😳 minor update to control whether to erase lonely edges or not - and corrected the purge order.

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

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        thomthom
                                        last edited by 23 Oct 2009, 13:33

                                        😳 😳 Yet another bug fix.

                                        Ok! Enough! Weekend!

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

                                        1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          plot-paris
                                          last edited by 23 Oct 2009, 14:50

                                          fantastic plugin, Thom,

                                          I already had my shortcut Ctrl+Shift+D assigned to the first cleanup-script. but the new one seems to be a lot more powerful. already worked well on models that lost lots of faces when cleaned up in the past.

                                          about the threshold: do you think instead (or in addition maybe) to the manual input, would it make sense to have predefined settings, like 'high', 'medium' and 'low'?
                                          cause adding nines to the 0.9999 isn't very intuitive... on the other hand. might be a bit too much... πŸ˜•

                                          thanks again for the plugin. cleanup is one of the tools that I use most. couldn't live without it!
                                          have a nice weekend!

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 48
                                          • 49
                                          • 2 / 49
                                          2 / 49
                                          • First post
                                            27/974
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement