Delete holes (a lot of them)

Next
 From:  Samuel Zeller
6603.1 
Hi there,

Looking for a script to delete holes (from a surface selection)

Step 1, select inside surface
http://cl.ly/image/0p0A2W2d1S2D

Step 2, delete them
http://cl.ly/image/1T203p25232T

Step 3
http://cl.ly/image/0W3I1w0m2X1M

Is it possible to automate step 2?

Because when you have 200 holes to delete, it's boring...
I manually select the inside surface (that's not too long to do)
But then I loose a lot of time selecting the edges (even with edges filter on!)

http://cl.ly/image/0Q1w0J1q2239

Guess what I'm working on :)

http://cl.ly/image/3o2N3k3X412S
http://cl.ly/image/041b0G2V141p
--
shapenoid.com
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6603.2 In reply to 6603.1 
Hi DesuDeus, well once you have selected and deleted the "side wall" surfaces, the remaining edges that you want to delete will be naked edges so the select naked edge script could grab all those:
http://moi3d.com/forum/index.php?webtag=MOI&msg=6051.2

Also here is a variant which may be useful - this one will target just the naked edges of any inner boundaries leaving edges on the outside boundary of the face unselected even if they are naked edges. To use this one start with the full object selected first:

script: /* switch selection to naked edges of inner loops */ var gd = moi.geometryDatabase; var breps = gd.getSelectedObjects().getBReps(); gd.deselectAll(); for ( var i = 0; i < breps.length; ++i ) { var brep = breps.item(i); var faces = brep.getFaces(); for ( var j = 0; j < faces.length; ++j ) { var face = faces.item(j); var loops = face.getLoops(); for ( var jj = 1; jj < loops.length; ++jj ) { var edges = loops.item(jj); for ( var k = 0; k < edges.length; ++k ) { var edge = edges.item(k); if ( edge.getFacesOfEdge().length == 1 ) { edge.selected = true; } } } } }

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Samuel Zeller
6603.3 
Thanks Michael,
Again you're saving me a lot of time :)

I've spent the last two days cleaning that damn model. It's so huge but it's gonna be nice!
--
shapenoid.com
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All