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

    [Plugin] Remove Inner Faces

    Scheduled Pinned Locked Moved Plugins
    23 Posts 15 Posters 29.9k 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.
    • GaieusG Offline
      Gaieus
      last edited by

      It's not very difficult to do it manually either;
      http://www.sketchucation.com/forums/scf/viewtopic.php?f=22&t=905

      Gai...

      1 Reply Last reply Reply Quote 0
      • pilouP Offline
        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 Offline
          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.comalbumsu143FreeAgent84bug.gif

          1 Reply Last reply Reply Quote 0
          • PixeroP Offline
            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 Offline
              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 Offline
                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 Offline
                  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 Offline
                    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 Offline
                      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 Offline
                        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 Offline
                          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 Offline
                            irwanwr
                            last edited by

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

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

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

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

                                            Advertisement