Why does this code take a long time and runing SketchUp menus the effect is immediate? Is there any instructions to do the same directly, like *group.soft=true* / *group.smooth=true*?

```
model = Sketchup.active_model
selection = model.selection
edges=[]
selection.to_a.each{|e|
edges << e if e.class==Sketchup::Edge
e.entities.each{|ee|edges << ee if ee.class==Sketchup::Edge}if e.class==Sketchup::Group
}
edges.each{|edge|
ang=edge.faces[0].normal.angle_between(edge.faces[1].normal)
if edge.faces[1]
edge.soft=true if ang < 20.degrees
edge.smooth=true if ang < 20.degrees
end
```