Hi mir4ea, yes it's possible to target selection on just the "outer loop" of a face, I've put a script below that will do that, to use it select the objects you want, and when you trigger the script the selected objects will have selection switch to naked edges on their outer boundaries like you show there.
But note that you can't delete an edge selection like the one on the right that you show there - in order to delete edges the entire boundary loop of edges on a single face needs to be selected and also none of them joined to other faces, so you would need to use Edit > Separate on a joined object like that before being able to remove the outer trimming boundaries. The removal works on a per-face level and will remove a face's trimming boundary.
Here's the selection script though, does this do the selection job that you are asking about? :
script: /* switch selection to naked edges of outer 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(); var edges = loops.item(0); for ( var k = 0; k < edges.length; ++k ) { var edge = edges.item(k); if ( edge.getFacesOfEdge().length == 1 ) { edge.selected = true; } } } }
- Michael
|