Using the Nurbs Surface Relaxation routine:
First download the *.rvb file and save it to a location on your hard disk. Once you setup the script to run you cannot change this location without updating the loadscript command, so make sure you're happy with where you put it.
Now start Rhino (if it isn't already open) and undock the toolbar where you want to add this tool and create a new button on the toolbar like this:
Now press the shift-key and click on the new button with the right mouse button. You will see the "Edit Toolbar Button" dialog. Add the following command to one of the Button Command fields: -_LoadScript "C:/Program Files/Rhinoceros3/Scripts/NurbsRelaxation.rvb"
Obviously you have to use a correct location instead of this default one. Be sure to add the quotes around the file-path.
Now if you press the button, the script will be loaded from the disk. Note that this script uses some relatively new functions that have not been exposed in early versions of the RhinoScript engine. If you see an error like this:
You should download and install the latest version of the RhinoScript engine. You can get it from the Rhino Work In Progress download page. Read the Rhino user manual if you don't know how to install/replace plugins. The script should run without crashing. If you feel this is not the case, then please send me the surface geometry and I'll do my best to debug it.
For additional information.