@jim4366 said:
Very good, thank you so much. I run into this exact situation all the time converting imported .stl files. Circles usually come in broken with hundreds of segments. Now hoping it's not too much to ask, but would it be possible that, having the center point, could those segments that made up the circle be deleted and replaced with a real sketchup circle? In one swoop? Just a standard 24 segment circle would be fine. A circle un-exploder?
Modified code
m=Sketchup.active_model;e=m.entities;s=m.selection;s.grep(Sketchup;;Face).each{|f|p=f.bounds.center;e.add_cpoint(p);n=f.normal;r=p.distance(f.vertices[0].position);e.erase_entities(f.edges);e.add_circle(p,n,r)}
Or,copy attached plugin to Plugins folder. You will need to supply your own icons for the toolbar created.
Remake Circle.rb