Automatic surface repairing, defeaturing and meshing algorithms based on an extended B-rep. (August 2015)