sketchucation logo sketchucation
    • Login
    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!
    Mac User? | Join the Rayscaper Beta for Mac Learn More

    [Plugin] Remove Inner Faces

    Scheduled Pinned Locked Moved Plugins
    23 Posts 15 Posters 33.3k Views 15 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.
    • pilouP
      pilou
      last edited by

      Yes I have seen this very useful tut, but for complex objects with thousand of internal faces, it's some painful πŸ˜„
      No possibility to test a surface'state in Ruby + SU?
      Select visibles face + Inverse Selection delete ?

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

      1 Reply Last reply
      Reply Quote 0
      • free agentF
        free agent
        last edited by

        the subdive and smooth plugin set has a tool that does what ur asking for however u cant control how much it extrudes (which is a bit silly really) it just extrudes a bit to give you those extra faces then u have to manually drag it to the legth u want

        http://i167.photobucket.com/albums/u143/FreeAgent84/bug.gif

        1 Reply Last reply
        Reply Quote 0
        • PixeroP
          Pixero
          last edited by

          @unknownuser said:

          the subdive and smooth plugin set has a tool that does what ur asking for however u cant control how much it extrudes (which is a bit silly really) it just extrudes a bit to give you those extra faces then u have to manually drag it to the legth u want

          Yeah, that tool would be great to have as a standalone script as an alternative to the normal pushpull tool.

          1 Reply Last reply
          Reply Quote 0
          • W
            wikii
            last edited by

            
            module Wikii
            def Wikii.remove_inner_faces
              fs=[]
              Sketchup.active_model.selection.each{|x| 
              if x.typename=="Face"
                to_be_delete=true
                x.outer_loop.edges.each{|y|
                if  y.faces.length<=2      
                  to_be_delete=nil
                  break
                  end
                }
                fs << x if to_be_delete
                end
                }
                Sketchup.active_model.start_operation "remove_inner_faces"
                fs.each{|x| x.erase!}
                puts fs.length.to_s+" faces removed !"
                Sketchup.active_model.commit_operation 
              end
              end
              #Wikii.remove_inner_faces
            
            
            1 Reply Last reply
            Reply Quote 0
            • pilouP
              pilou
              last edited by

              @WiKii
              How use that? With the ruby console? 😳
              I am not ruby expert πŸ˜’

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

              1 Reply Last reply
              Reply Quote 0
              • M
                Matt666
                last edited by

                Hi Pilou !
                1- Copy the code in a a new notepad file.
                2- Copy this code below, in the file

                if not file_loaded?("remove_inner_faces.rb")
                	UI.menu("Plugins").add_item("Remove inner faces"){Wikii.remove_inner_faces}
                end
                file_loaded("remove_inner_faces.rb")
                

                2- Save it as "remove_inner_faces.rb".
                3- Move the file in plugins folder.
                4- Restart SU.
                πŸ˜‰

                Frenglish at its best !
                My scripts

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

                  @unknownuser said:

                  ... only forgotten to scroll the first code of Wikii so some lines are missing 😳 ...

                  There is a "Select all" link on the top of the code snipplet - if you use that, you can make sure not to leave anything out in the future (or click in the code field and hit Ctrl+A then Ctrl+C)

                  Gai...

                  1 Reply Last reply
                  Reply Quote 0
                  • pilouP
                    pilou
                    last edited by

                    Yes for the next time it will be more easy! πŸ˜„

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

                    1 Reply Last reply
                    Reply Quote 0
                    • pilouP
                      pilou
                      last edited by

                      Ok I have made the steps above 1 2, 2(?) 3 4
                      but "syntax error line 16" (last line) ❓

                      @unknownuser said:

                      Error Loading File remove_inner_faces.rb
                      C:/Program Files/Google/Google SketchUp 6/Plugins/remove_inner_faces.rb:16: syntax error

                      Edit 😳 :
                      I only forgotten to scroll the first code of Wikii so some lines are missing 😳
                      All works fine! πŸ‘
                      You are genious!!! β˜€

                      Ruby linked by Wiiki


                      remove_inner_faces.zip

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

                      1 Reply Last reply
                      Reply Quote 0
                      • E
                        EA-d
                        last edited by

                        @unknownuser said:

                        Does exist a ruby script for kill the internal surfaces but not the edges of these surfaces (after a Pushpull + Ctrl for example)?
                        [/attachment]

                        How about one for killing external surfaces, after an intersection of multiple groups, when forming internal models only (eg for export for light or acoustic modelling)? I'd like to place a marker (or the camera) inside my room and have a plugin automatically trim and delete any surfaces not reachable from that point. Sort of like doing a blow-mould!

                        Would be very handy!

                        1 Reply Last reply
                        Reply Quote 0
                        • irwanwrI
                          irwanwr
                          last edited by

                          merci monsieur Pilou πŸ‘
                          and wikii of course πŸ˜„

                          1 Reply Last reply
                          Reply Quote 0
                          • L
                            Lain Iwakura
                            last edited by

                            wikii, thank u very much. Great tool for retop.

                            1 Reply Last reply
                            Reply Quote 0
                            • pilouP
                              pilou
                              last edited by

                              @unknownuser said:

                              How about one for killing external surfaces, after an intersection of multiple groups, when forming internal models only (eg for export for light or acoustic modelling)? I'd like to place a marker (or the camera) inside my room and have a plugin automatically trim and delete any surfaces not reachable from that point. Sort of like doing a blow-mould!

                              Seems you have this result with a blender of normal selections (right to left, left to right), Inverse Selection by Tig, Selection Toys by Thomthom...

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

                              1 Reply Last reply
                              Reply Quote 0
                              • J
                                j_forrester
                                last edited by

                                Hi Guys,

                                Just a quick one.

                                Does this still work for Skecthup 2016? I have re-named the zip folder extension to ".rbz" hoping this would install it correctly. I says it did install but i cant seem to see it anywhere in the menus? Any help would be very much appreciated.

                                1 Reply Last reply
                                Reply Quote 0
                                • G
                                  glro
                                  last edited by

                                  @j_forrester said:

                                  Hi Guys,

                                  Just a quick one.

                                  Does this still work for Skecthup 2016? I have re-named the zip folder extension to ".rbz" hoping this would install it correctly. I says it did install but i cant seem to see it anywhere in the menus? Any help would be very much appreciated.

                                  just put this file in your plugins folder


                                  remove inner faces

                                  1 Reply Last reply
                                  Reply Quote 0
                                  • J
                                    j_forrester
                                    last edited by

                                    @glro said:

                                    @j_forrester said:

                                    Hi Guys,

                                    Just a quick one.

                                    Does this still work for Skecthup 2016? I have re-named the zip folder extension to ".rbz" hoping this would install it correctly. I says it did install but i cant seem to see it anywhere in the menus? Any help would be very much appreciated.

                                    just put this file in your plugins folder

                                    Thank you very much, worked perfectly!

                                    1 Reply Last reply
                                    Reply Quote 0
                                    • PixeroP
                                      Pixero
                                      last edited by

                                      Just a side note.

                                      Sdmitch made a script for me that works like ctrl+pushpull without creating inner faces.
                                      It seems he hasn't released it publicly but you could perhaps ask him to release it if interested.

                                      1 Reply Last reply
                                      Reply Quote 0
                                      • B
                                        blusben11
                                        last edited by

                                        I get this:

                                        Error Loading File remove_inner_faces.rb
                                        Error: #<NoMethodError: undefined method file_loaded?' for main:Object> D:/Program Files/SketchUp/SketchUp 2015/Tools/remove_inner_faces.rb:23:in <top (required)>'

                                        Thanks in advance

                                        1 Reply Last reply
                                        Reply Quote 0
                                        • iichiversiiI
                                          iichiversii
                                          last edited by

                                          This plugin hasn't worked for sometime, its a shame as it really helped me out a lot, is there any plans in updating this or is there any alternative plugin that does the same?

                                          Bring on the Rain...

                                          1 Reply Last reply
                                          Reply Quote 0
                                          • T
                                            TBoy
                                            last edited by

                                            Solid Inspectorby thomthom will do the job.


                                            IF.png

                                            F 1 Reply Last reply
                                            Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better πŸ’—

                                            Register Login
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement