The script https://gist.github.com/zeffii/5671824 creates a polysphere, but allows the user to set how spherical it is and how many subdivisions it has and its radius as parameters.
The problem is the sphere has doubles along all sides as a result of the way the geometry is created. Doubles are no good for sculpting -- and sculpting is the reason for the polysphere.
I would like to know if there is a way to automatically run
remove_doubles(threshold=1.0e-5) just once, on the newly created object when the script is finished. (by finished i mean you can no longer adjust parameters)
I guess my alternative will be to construct the mesh without doubles in the first place, which is going to be a bit of a mind-bender or delete the mesh on each parameter adjustment and remove doubles too on each adjustment.
I reluctantly went for the
delete / create / remove doubles combo, the script does work as desired from the point of view of the user. Script is here