[Plugin] Remove Inner Faces

[Plugin] Remove Inner Faces

Postby wikii » Mon Sep 15, 2008 7:45 am

Pilou wrote: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! :roll:

Resolved see here Thx Wikii & Matt666 :fro:

face.jpg
remove_inner_faces.zip
1
Last edited by Gaieus on Tue Apr 10, 2012 9:12 pm, edited 14 times in total.
Reason: Attributed post to Wikii

wikii 
PluginStore Author
PluginStore Author
 

Re: Internal surfaces

Postby Gaieus » Mon Sep 15, 2008 8:21 am

It's not very difficult to do it manually either;
viewtopic.php?f=22&t=905
0
User avatar
Gaieus 
 

Re: Internal surfaces

Postby pilou » Mon Sep 15, 2008 8:45 am

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 ?
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: Internal surfaces

Postby free agent » Mon Sep 15, 2008 9:31 am

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
0
User avatar
free agent 
 

Re: Internal surfaces

Postby Pixero » Mon Sep 15, 2008 2:42 pm

Free Agent wrote: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.
0
User avatar
Pixero 
Premium Member
Premium Member
 

Re: Internal surfaces

Postby wikii » Tue Sep 16, 2008 3:19 pm

Code: Select all
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
0

wikii 
PluginStore Author
PluginStore Author
 

Re: Internal surfaces

Postby pilou » Tue Sep 16, 2008 3:26 pm

@WiKii
How use that? With the ruby console? :oops:
I am not ruby expert :roll:
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: Internal surfaces

Postby Matt666 » Tue Sep 16, 2008 7:15 pm

Hi Pilou !
1- Copy the code in a a new notepad file.
2- Copy this code below, in the file
Code: Select all
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.
;)
0
Frenglish at its best !
My scripts

Matt666 
 

Re: Internal surfaces

Postby pilou » Tue Sep 16, 2008 9:19 pm

Ok I have made the steps above 1 2, 2(?) 3 4
but "syntax error line 16" (last line) :?:
Error Loading File remove_inner_faces.rb
C:/Program Files/Google/Google SketchUp 6/Plugins/remove_inner_faces.rb:16: syntax error


Edit :oops: :
I only forgotten to scroll the first code of Wikii so some lines are missing :oops:
All works fine! :thumb:
You are genious!!! :enlight:

Ruby linked by Wiiki
0
Last edited by pilou on Thu Jan 28, 2010 9:23 pm, edited 1 time in total.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: Internal surfaces

Postby Gaieus » Wed Sep 17, 2008 7:22 am

Pilou wrote:... only forgotten to scroll the first code of Wikii so some lines are missing :oops: ...

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)
0
User avatar
Gaieus 
 

Re: [Plugin]Internal surfaces [resolved!]

Postby pilou » Wed Sep 17, 2008 7:31 am

Yes for the next time it will be more easy! :D
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Internal surfaces

Postby EA-d » Sat May 08, 2010 2:43 pm

Pilou wrote: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!
0

EA-d 
 

Re: [Plugin] Remove Inner Faces

Postby irwanwr » Mon Apr 30, 2012 3:37 pm

merci monsieur Pilou :thumb:
and wikii of course :)
0
User avatar
irwanwr 
 

Re: [Plugin] Remove Inner Faces

Postby Lain Iwakura » Sun Mar 23, 2014 8:54 am

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

Lain Iwakura 
 

Re: [Plugin] Remove Inner Faces

Postby pilou » Sun Mar 23, 2014 12:01 pm

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...
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Remove Inner Faces

Postby j_forrester » Mon Apr 11, 2016 8:26 pm

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.
0

j_forrester 
 

Re: [Plugin] Remove Inner Faces

Postby glro » Wed Apr 13, 2016 10:22 pm

j_forrester wrote: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
0

glro 
 

Re: [Plugin] Remove Inner Faces

Postby j_forrester » Fri Apr 15, 2016 9:05 am

glro wrote:
j_forrester wrote: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!
0

j_forrester 
 

Re: [Plugin] Remove Inner Faces

Postby Pixero » Fri Apr 15, 2016 12:52 pm

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.
0
User avatar
Pixero 
Premium Member
Premium Member
 

Re: [Plugin] Remove Inner Faces

Postby blusben11 » Fri Jun 09, 2017 5:54 pm

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
0

blusben11 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: No registered users and 7 guests

Visit our sponsors: