the function 'smoothnormals' is completed