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

[Plugin] Remove Inner Faces

Scheduled Pinned Locked Moved Plugins
23 Posts 15 Posters 29.8k 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.
  • W Offline
    wikii
    last edited by wikii 15 Sept 2008, 06:45

    @unknownuser said:

    Plugin added below under this link.


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

    Why? Because when you export a Su file in OBJ to Zbrush for example, these intenal faces were not erased and make some disturb! πŸ˜’

    Resolved see here Thx Wikii & Matt666 😎

    face.jpgremove_inner_faces.zip

    1 Reply Last reply Reply Quote 0
    • G Offline
      Gaieus
      last edited by 15 Sept 2008, 07:21

      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
      • P Offline
        pilou
        last edited by 15 Sept 2008, 07:45

        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
        • F Offline
          free agent
          last edited by 15 Sept 2008, 08:31

          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
          • P Offline
            Pixero
            last edited by 15 Sept 2008, 13:42

            @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 16 Sept 2008, 14:19

              
              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
              • P Offline
                pilou
                last edited by 16 Sept 2008, 14:26

                @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 16 Sept 2008, 18:15

                  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
                  • G Offline
                    Gaieus
                    last edited by 17 Sept 2008, 06:22

                    @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
                    • P Offline
                      pilou
                      last edited by 17 Sept 2008, 06:31

                      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
                      • P Offline
                        pilou
                        last edited by 28 Jan 2010, 20:23

                        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 8 May 2010, 13:43

                          @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 30 Apr 2012, 14:37

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

                            1 Reply Last reply Reply Quote 0
                            • L Offline
                              Lain Iwakura
                              last edited by 23 Mar 2014, 07:54

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

                              1 Reply Last reply Reply Quote 0
                              • P Offline
                                pilou
                                last edited by 23 Mar 2014, 11:01

                                @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 11 Apr 2016, 19:26

                                  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 13 Apr 2016, 21:22

                                    @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 15 Apr 2016, 08:05

                                      @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
                                      • P Offline
                                        Pixero
                                        last edited by 15 Apr 2016, 11:52

                                        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 9 Jun 2017, 16:54

                                          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
                                          • 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