by 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!
Resolved see here Thx Wikii & Matt666  face.jpg remove_inner_faces.zip
Please, register (free) to access all the attachments on the forums.
Last edited by Gaieus on Tue Apr 10, 2012 9:12 pm, edited 14 times in total.
Reason: Attributed post to Wikii
-
wikii
-
- Posts: 104
- Joined: Mon Jan 28, 2008 1:13 am
by Gaieus » Mon Sep 15, 2008 8:21 am
It's not very difficult to do it manually either; viewtopic.php?f=22&t=905
Gai...
-

Gaieus
- Administrator
-
- Posts: 27722
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by 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 ?
-

Pilou
- Top SketchUcator
-
- Posts: 10207
- Joined: Wed Jan 23, 2008 10:33 pm
- Operating system: Windows
- SketchUp version: 6
- License type: Free/Make
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by 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
-

Free Agent
-
- Posts: 273
- Joined: Thu Jun 05, 2008 10:00 am
- Location: Cape Town, South Africa
- Name: Sean
by 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.
-

Pixero
- Premium Member

-
- Posts: 1297
- Joined: Wed Nov 14, 2007 2:58 pm
- Location: Halmstad, Sweden
- Name: Jan Sandström
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by 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
-
wikii
-
- Posts: 104
- Joined: Mon Jan 28, 2008 1:13 am
by Pilou » Tue Sep 16, 2008 3:26 pm
@WiKii How use that? With the ruby console? I am not ruby expert 
-

Pilou
- Top SketchUcator
-
- Posts: 10207
- Joined: Wed Jan 23, 2008 10:33 pm
- Operating system: Windows
- SketchUp version: 6
- License type: Free/Make
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by 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. 
-
Matt666
-
- Posts: 829
- Joined: Wed Dec 05, 2007 8:38 am
- Location: 48.1184, -1.675
- Name: Matt
-
by 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  : 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
Please, register (free) to access all the attachments on the forums.
Last edited by Pilou on Thu Jan 28, 2010 9:23 pm, edited 1 time in total.
-

Pilou
- Top SketchUcator
-
- Posts: 10207
- Joined: Wed Jan 23, 2008 10:33 pm
- Operating system: Windows
- SketchUp version: 6
- License type: Free/Make
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by Gaieus » Wed Sep 17, 2008 7:22 am
Pilou wrote:... 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...
-

Gaieus
- Administrator
-
- Posts: 27722
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by Pilou » Wed Sep 17, 2008 7:31 am
Yes for the next time it will be more easy! 
-

Pilou
- Top SketchUcator
-
- Posts: 10207
- Joined: Wed Jan 23, 2008 10:33 pm
- Operating system: Windows
- SketchUp version: 6
- License type: Free/Make
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by 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!
-
EA-d
-
- Posts: 1
- Joined: Sun May 02, 2010 11:02 pm
- Name: Paul Malpas
by irwanwr » Mon Apr 30, 2012 3:37 pm
merci monsieur Pilou  and wikii of course 
-

irwanwr
-
- Posts: 571
- Joined: Fri May 21, 2010 2:21 am
- Location: Medan, Indonesia.
- Name: irwanwr
- Operating system: Windows
- SketchUp version: 8
- License type: Free/Make
- SketchUp use: hobby
- Level of SketchUp: Beginner
-
by Ad Machine » 5 minutes ago
Need SketchUp Books, Models, Styles or Textures? Check out our One Stop Shop for SketchUp. Premium Members get 20% discount!
-
Ad Machine
- Robot
-
- Posts: 2012
-
Return to Plugins
|